com.ibm.websphere.wssecurity.wssapi

Class WSSFactory

  1. java.lang.Object
  2. extended bycom.ibm.websphere.wssecurity.wssapi.WSSFactory

  1. public abstract class WSSFactory
  2. extends java.lang.Object
This abstract class is responsible for the creation of classes that are required for WS-Security generation and consumption.

Constructor Summary

Constructor and Description
WSSFactory()

Method Summary

Modifier and Type Method and Description
  1. static
  2. WSSFactory
getInstance()
Instanciates WSSFactory itself.
  1. abstract
  2. SecurityToken
newSecurityToken(java.lang.Class tokenClass,javax.security.auth.callback.CallbackHandler callbackHandler)
Instanciates the security token class.
  1. abstract
  2. SecurityToken
newSecurityToken(java.lang.Class tokenClass,javax.security.auth.callback.CallbackHandler callbackHandler,java.lang.String loginConfigName)
Instanciates the security token class.
  1. abstract
  2. SecurityToken[]
newSecurityTokens(java.lang.Class[] tokenClasses,javax.security.auth.callback.CallbackHandler callbackHandler)
Instanciates the security token classes.
  1. abstract
  2. SecurityToken[]
newSecurityTokens(java.lang.Class[] tokenClasses,javax.security.auth.callback.CallbackHandler callbackHandler,java.lang.String loginConfigName)
Instanciates some security token classes.
  1. abstract
  2. WSSConsumingContext
newWSSConsumingContext()
Instanciate the WSSConsumingContext class, which stored the comsuption components.
  1. abstract
  2. WSSConsumingContext
newWSSConsumingContext(java.lang.String actor)
Instanciate the WSSConsumingContext class, which stored the comsuption components.
  1. abstract
  2. WSSDecryption
newWSSDecryption()
Instantiates the WSSDecryption class.
  1. abstract
  2. WSSDecryption
newWSSDecryption(java.lang.Class tokenClass)
Instantiates the WSSDecryption class.
  1. abstract
  2. WSSDecryption
newWSSDecryption(java.lang.Class tokenClass,javax.security.auth.callback.CallbackHandler callbackHandler)
Instantiates the WSSDecryption class.
  1. abstract
  2. WSSDecryption
newWSSDecryption(java.lang.Class tokenClass,javax.security.auth.callback.CallbackHandler callbackHandler,java.lang.String loginConfigName)
Instantiates the WSSDecryption class.
  1. abstract
  2. WSSDecryptPart
newWSSDecryptPart()
Instantiates the WSSDecryptPart class.
  1. abstract
  2. WSSEncryption
newWSSEncryption()
Instantiates the WSSEncryption class.
  1. abstract
  2. WSSEncryption
newWSSEncryption(SecurityToken token)
Instantiates the WSSEncryption class.
  1. abstract
  2. WSSEncryptPart
newWSSEncryptPart()
Instanciates the WSSEncryptPart class.
  1. abstract
  2. WSSGenerationContext
newWSSGenerationContext()
Instanciates the WSSGenerationContext class.
  1. abstract
  2. WSSGenerationContext
newWSSGenerationContext(java.lang.String actor)
Instanciates the WSSGenerationContext class.
  1. abstract
  2. WSSSignature
newWSSSignature(SecurityToken token)
Instanciates the WSSSignature class.
  1. abstract
  2. WSSSignPart
newWSSSignPart()
Instanciates the WSSSignPart class.
  1. abstract
  2. WSSTimestamp
newWSSTimestamp()
Instanciates the WSSTimestamp class.
  1. abstract
  2. WSSVerification
newWSSVerification(java.lang.Class tokenClass)
Instanciates WSSVerification class.
  1. abstract
  2. WSSVerification
newWSSVerification(java.lang.Class tokenClass,javax.security.auth.callback.CallbackHandler callbackHandler)
Instanciates WSSVerification class.
  1. abstract
  2. WSSVerification
newWSSVerification(java.lang.Class tokenClass,javax.security.auth.callback.CallbackHandler callbackHandler,java.lang.String loginConfigName)
Instanciates WSSVerification class.
  1. abstract
  2. WSSVerifyPart
newWSSVerifyPart()
Instanciates the WSSVerifyPart class.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

WSSFactory

  1. public WSSFactory()

Method Detail

getInstance

  1. public static WSSFactory getInstance( )
  2. throws WSSException
Instanciates WSSFactory itself.
Returns:
WSSFactory object
Throws:
WSSException - if the illegal access occurs or if the WSSFactory instance is not generated.

newWSSGenerationContext

  1. public abstract WSSGenerationContext newWSSGenerationContext( )
Instanciates the WSSGenerationContext class.
Returns:
WSSGenerationContext object

newWSSGenerationContext

  1. public abstract WSSGenerationContext newWSSGenerationContext( java.lang.String actor)
Instanciates the WSSGenerationContext class.
Parameters:
actor - the actor
Returns:
WSSGenerationContext object

newWSSConsumingContext

  1. public abstract WSSConsumingContext newWSSConsumingContext( )
Instanciate the WSSConsumingContext class, which stored the comsuption components.
Returns:
WSSConsumingContext object

newWSSConsumingContext

  1. 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

  1. 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

  1. public abstract WSSSignPart newWSSSignPart( )
Instanciates the WSSSignPart class.
Returns:
WSSSignPart object

newWSSEncryption

  1. 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

  1. public abstract WSSEncryption newWSSEncryption( )
Instantiates the WSSEncryption class.
Returns:
WSSEncryption object

newWSSEncryptPart

  1. public abstract WSSEncryptPart newWSSEncryptPart( )
Instanciates the WSSEncryptPart class.
Returns:
WSSEncryptPart object

newWSSTimestamp

  1. public abstract WSSTimestamp newWSSTimestamp( )
  2. throws WSSException
Instanciates the WSSTimestamp class.
Returns:
WSSTimestamp object
Throws:
WSSException - the error occurs in parsing the duration time

newSecurityToken

  1. public abstract SecurityToken newSecurityToken( java.lang.Class tokenClass,
  2. javax.security.auth.callback.CallbackHandler callbackHandler,
  3. java.lang.String loginConfigName)
  4. throws WSSException
Instanciates the security token class.
Parameters:
tokenClass - class of the security token
callbackHandler - callback handler
loginConfigName - name of the JAAS login configuration
Returns:
security token object
Throws:
WSSException - if the SecurityToken instance is not generated

newSecurityTokens

  1. public abstract SecurityToken[] newSecurityTokens( java.lang.Class[] tokenClasses,
  2. javax.security.auth.callback.CallbackHandler callbackHandler,
  3. java.lang.String loginConfigName)
  4. throws WSSException
Instanciates some security token classes. This method is for WS-SecureConversation.
callbackHandler - callback handler
loginConfigName - name of the JAAS login configuration
Returns:
security token objects
Throws:
WSSException - if the SecurityToken instances are not generated

newSecurityToken

  1. public abstract SecurityToken newSecurityToken( java.lang.Class tokenClass,
  2. javax.security.auth.callback.CallbackHandler callbackHandler)
  3. throws WSSException
Instanciates the security token class.
Parameters:
tokenClass - class of the security token
callbackHandler - callback handler
Returns:
security token object
Throws:
WSSException - if the SecurityToken instance is not generated

newSecurityTokens

  1. public abstract SecurityToken[] newSecurityTokens( java.lang.Class[] tokenClasses,
  2. javax.security.auth.callback.CallbackHandler callbackHandler)
  3. throws WSSException
Instanciates the security token classes. This method is for WS-SecureConversation.
callbackHandler - callback handler
Returns:
security token objects
Throws:
WSSException - if the SecurityToken instances are not generated

newWSSVerification

  1. public abstract WSSVerification newWSSVerification( java.lang.Class tokenClass)
  2. throws WSSException
Instanciates WSSVerification class.
Parameters:
tokenClass - class of the security token
Returns:
WSSVerification object
Throws:
WSSException - if the tokenClass is not valid

newWSSVerification

  1. public abstract WSSVerification newWSSVerification( java.lang.Class tokenClass,
  2. javax.security.auth.callback.CallbackHandler callbackHandler)
  3. throws WSSException
Instanciates WSSVerification class.
Parameters:
tokenClass - class of the security token
callbackHandler - callback handler
Returns:
WSSVerification object
Throws:
WSSException - if the arguments is not valid

newWSSVerification

  1. public abstract WSSVerification newWSSVerification( java.lang.Class tokenClass,
  2. javax.security.auth.callback.CallbackHandler callbackHandler,
  3. java.lang.String loginConfigName)
  4. throws WSSException
Instanciates WSSVerification class.
Parameters:
tokenClass - class of the security token
callbackHandler - callback handler
loginConfigName - name of the JAAS login configuration
Returns:
WSSVerification object
Throws:
WSSException - if the arguments are not valid

newWSSVerifyPart

  1. public abstract WSSVerifyPart newWSSVerifyPart( )
Instanciates the WSSVerifyPart class.
Returns:
WSSVerifyPart object

newWSSDecryption

  1. public abstract WSSDecryption newWSSDecryption( java.lang.Class tokenClass,
  2. javax.security.auth.callback.CallbackHandler callbackHandler,
  3. java.lang.String loginConfigName)
  4. throws WSSException
Instantiates the WSSDecryption class.
Parameters:
tokenClass - class of the security token
callbackHandler - callback handler
loginConfigName - name of the JAAS login configuration
Returns:
WSSDecryption object
Throws:
WSSException - if the arguments are not valid

newWSSDecryption

  1. public abstract WSSDecryption newWSSDecryption( java.lang.Class tokenClass,
  2. javax.security.auth.callback.CallbackHandler callbackHandler)
  3. throws WSSException
Instantiates the WSSDecryption class.
Parameters:
tokenClass - classClass of the security token
callbackHandler - callback handler
Returns:
WSSDecryption object
Throws:
WSSException - if the arguments are not valid

newWSSDecryption

  1. public abstract WSSDecryption newWSSDecryption( java.lang.Class tokenClass)
  2. 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

  1. public abstract WSSDecryption newWSSDecryption( )
Instantiates the WSSDecryption class.
Returns:
WSSDecryption object

newWSSDecryptPart

  1. public abstract WSSDecryptPart newWSSDecryptPart( )
Instantiates the WSSDecryptPart class.
Returns:
WSSDecryptPart object