com.ibm.websphere.wssecurity.wssapi
Class WSSFactory
- java.lang.Object
-
- com.ibm.websphere.wssecurity.wssapi.WSSFactory
-
public abstract class WSSFactory extends java.lang.ObjectThis abstract class is responsible for the creation of classes that are required for WS-Security generation and consumption.
-
-
Constructor Summary
Constructors Constructor and Description WSSFactory()
-
Method Summary
Methods Modifier and Type Method and Description static WSSFactorygetInstance()Instanciates WSSFactory itself.abstract SecurityTokennewSecurityToken(java.lang.Class tokenClass, javax.security.auth.callback.CallbackHandler callbackHandler)Instanciates the security token class.abstract SecurityTokennewSecurityToken(java.lang.Class tokenClass, javax.security.auth.callback.CallbackHandler callbackHandler, java.lang.String loginConfigName)Instanciates the security token class.abstract SecurityToken[]newSecurityTokens(java.lang.Class[] tokenClasses, javax.security.auth.callback.CallbackHandler callbackHandler)Instanciates the security token classes.abstract SecurityToken[]newSecurityTokens(java.lang.Class[] tokenClasses, javax.security.auth.callback.CallbackHandler callbackHandler, java.lang.String loginConfigName)Instanciates some security token classes.abstract WSSConsumingContextnewWSSConsumingContext()Instanciate the WSSConsumingContext class, which stored the comsuption components.abstract WSSConsumingContextnewWSSConsumingContext(java.lang.String actor)Instanciate the WSSConsumingContext class, which stored the comsuption components.abstract WSSDecryptionnewWSSDecryption()Instantiates the WSSDecryption class.abstract WSSDecryptionnewWSSDecryption(java.lang.Class tokenClass)Instantiates the WSSDecryption class.abstract WSSDecryptionnewWSSDecryption(java.lang.Class tokenClass, javax.security.auth.callback.CallbackHandler callbackHandler)Instantiates the WSSDecryption class.abstract WSSDecryptionnewWSSDecryption(java.lang.Class tokenClass, javax.security.auth.callback.CallbackHandler callbackHandler, java.lang.String loginConfigName)Instantiates the WSSDecryption class.abstract WSSDecryptPartnewWSSDecryptPart()Instantiates the WSSDecryptPart class.abstract WSSEncryptionnewWSSEncryption()Instantiates the WSSEncryption class.abstract WSSEncryptionnewWSSEncryption(SecurityToken token)Instantiates the WSSEncryption class.abstract WSSEncryptPartnewWSSEncryptPart()Instanciates the WSSEncryptPart class.abstract WSSGenerationContextnewWSSGenerationContext()Instanciates the WSSGenerationContext class.abstract WSSGenerationContextnewWSSGenerationContext(java.lang.String actor)Instanciates the WSSGenerationContext class.abstract WSSSignaturenewWSSSignature(SecurityToken token)Instanciates the WSSSignature class.abstract WSSSignPartnewWSSSignPart()Instanciates the WSSSignPart class.abstract WSSTimestampnewWSSTimestamp()Instanciates the WSSTimestamp class.abstract WSSVerificationnewWSSVerification(java.lang.Class tokenClass)Instanciates WSSVerification class.abstract WSSVerificationnewWSSVerification(java.lang.Class tokenClass, javax.security.auth.callback.CallbackHandler callbackHandler)Instanciates WSSVerification class.abstract WSSVerificationnewWSSVerification(java.lang.Class tokenClass, javax.security.auth.callback.CallbackHandler callbackHandler, java.lang.String loginConfigName)Instanciates WSSVerification class.abstract WSSVerifyPartnewWSSVerifyPart()Instanciates the WSSVerifyPart class.
-
-
-
Method Detail
-
getInstance
public static WSSFactory getInstance() throws WSSException
Instanciates WSSFactory itself.- Returns:
- WSSFactory object
- Throws:
WSSException- if the illegal access occurs or if the WSSFactory instance is not generated.
-
newWSSGenerationContext
public abstract WSSGenerationContext newWSSGenerationContext()
Instanciates the WSSGenerationContext class.- Returns:
- WSSGenerationContext object
-
newWSSGenerationContext
public abstract WSSGenerationContext newWSSGenerationContext(java.lang.String actor)
Instanciates the WSSGenerationContext class.- Parameters:
actor- the actor- Returns:
- WSSGenerationContext object
-
newWSSConsumingContext
public abstract WSSConsumingContext newWSSConsumingContext()
Instanciate the WSSConsumingContext class, which stored the comsuption components.- Returns:
- WSSConsumingContext object
-
newWSSConsumingContext
public abstract WSSConsumingContext newWSSConsumingContext(java.lang.String actor)
Instanciate the WSSConsumingContext class, which stored the comsuption components.- Parameters:
actor- the actor- Returns:
- WSSConsumingContext object
-
newWSSSignature
public abstract WSSSignature newWSSSignature(SecurityToken token)
Instanciates the WSSSignature class.- Parameters:
token- the security token with key for the purpose the signature- Returns:
- WSSSignature object
-
newWSSSignPart
public abstract WSSSignPart newWSSSignPart()
Instanciates the WSSSignPart class.- Returns:
- WSSSignPart object
-
newWSSEncryption
public abstract WSSEncryption newWSSEncryption(SecurityToken token)
Instantiates the WSSEncryption class.- Parameters:
token- the security token with key for the purpose the encryption.- Returns:
- WSSEncryption object
-
newWSSEncryption
public abstract WSSEncryption newWSSEncryption()
Instantiates the WSSEncryption class.- Returns:
- WSSEncryption object
-
newWSSEncryptPart
public abstract WSSEncryptPart newWSSEncryptPart()
Instanciates the WSSEncryptPart class.- Returns:
- WSSEncryptPart object
-
newWSSTimestamp
public abstract WSSTimestamp newWSSTimestamp() throws WSSException
Instanciates the WSSTimestamp class.- Returns:
- WSSTimestamp object
- Throws:
WSSException- the error occurs in parsing the duration time
-
newSecurityToken
public abstract SecurityToken newSecurityToken(java.lang.Class tokenClass, javax.security.auth.callback.CallbackHandler callbackHandler, java.lang.String loginConfigName) throws WSSException
Instanciates the security token class.- Parameters:
tokenClass- class of the security tokencallbackHandler- callback handlerloginConfigName- name of the JAAS login configuration- Returns:
- security token object
- Throws:
WSSException- if the SecurityToken instance is not generated
-
newSecurityTokens
public abstract SecurityToken[] newSecurityTokens(java.lang.Class[] tokenClasses, javax.security.auth.callback.CallbackHandler callbackHandler, java.lang.String loginConfigName) throws WSSException
Instanciates some security token classes. This method is for WS-SecureConversation.- Parameters:
classes- of the security tokencallbackHandler- callback handlerloginConfigName- name of the JAAS login configuration- Returns:
- security token objects
- Throws:
WSSException- if the SecurityToken instances are not generated
-
newSecurityToken
public abstract SecurityToken newSecurityToken(java.lang.Class tokenClass, javax.security.auth.callback.CallbackHandler callbackHandler) throws WSSException
Instanciates the security token class.- Parameters:
tokenClass- class of the security tokencallbackHandler- callback handler- Returns:
- security token object
- Throws:
WSSException- if the SecurityToken instance is not generated
-
newSecurityTokens
public abstract SecurityToken[] newSecurityTokens(java.lang.Class[] tokenClasses, javax.security.auth.callback.CallbackHandler callbackHandler) throws WSSException
Instanciates the security token classes. This method is for WS-SecureConversation.- Parameters:
classes- of the security tokencallbackHandler- callback handler- Returns:
- security token objects
- Throws:
WSSException- if the SecurityToken instances are not generated
-
newWSSVerification
public abstract WSSVerification newWSSVerification(java.lang.Class tokenClass) throws WSSException
Instanciates WSSVerification class.- Parameters:
tokenClass- class of the security token- Returns:
- WSSVerification object
- Throws:
WSSException- if the tokenClass is not valid
-
newWSSVerification
public abstract WSSVerification newWSSVerification(java.lang.Class tokenClass, javax.security.auth.callback.CallbackHandler callbackHandler) throws WSSException
Instanciates WSSVerification class.- Parameters:
tokenClass- class of the security tokencallbackHandler- callback handler- Returns:
- WSSVerification object
- Throws:
WSSException- if the arguments is not valid
-
newWSSVerification
public abstract WSSVerification newWSSVerification(java.lang.Class tokenClass, javax.security.auth.callback.CallbackHandler callbackHandler, java.lang.String loginConfigName) throws WSSException
Instanciates WSSVerification class.- Parameters:
tokenClass- class of the security tokencallbackHandler- callback handlerloginConfigName- name of the JAAS login configuration- Returns:
- WSSVerification object
- Throws:
WSSException- if the arguments are not valid
-
newWSSVerifyPart
public abstract WSSVerifyPart newWSSVerifyPart()
Instanciates the WSSVerifyPart class.- Returns:
- WSSVerifyPart object
-
newWSSDecryption
public abstract WSSDecryption newWSSDecryption(java.lang.Class tokenClass, javax.security.auth.callback.CallbackHandler callbackHandler, java.lang.String loginConfigName) throws WSSException
Instantiates the WSSDecryption class.- Parameters:
tokenClass- class of the security tokencallbackHandler- callback handlerloginConfigName- name of the JAAS login configuration- Returns:
- WSSDecryption object
- Throws:
WSSException- if the arguments are not valid
-
newWSSDecryption
public abstract WSSDecryption newWSSDecryption(java.lang.Class tokenClass, javax.security.auth.callback.CallbackHandler callbackHandler) throws WSSException
Instantiates the WSSDecryption class.- Parameters:
tokenClass- classClass of the security tokencallbackHandler- callback handler- Returns:
- WSSDecryption object
- Throws:
WSSException- if the arguments are not valid
-
newWSSDecryption
public abstract WSSDecryption newWSSDecryption(java.lang.Class tokenClass) throws WSSException
Instantiates the WSSDecryption class.- Parameters:
tokenClass- class of the security token- Returns:
- WSSDecryption object
- Throws:
WSSException- if the tokenClass is not valid
-
newWSSDecryption
public abstract WSSDecryption newWSSDecryption()
Instantiates the WSSDecryption class.- Returns:
- WSSDecryption object
-
newWSSDecryptPart
public abstract WSSDecryptPart newWSSDecryptPart()
Instantiates the WSSDecryptPart class.- Returns:
- WSSDecryptPart object
-
-