com.ibm.websphere.wssecurity.callbackhandler

Class SCTGenerateCallbackHandler

  1. java.lang.Object
  2. extended bycom.ibm.websphere.wssecurity.callbackhandler.SCTGenerateCallbackHandler
All implemented interfaces:
java.io.Serializable, javax.security.auth.callback.CallbackHandler

  1. public class SCTGenerateCallbackHandler
  2. extends java.lang.Object
  3. implements javax.security.auth.callback.CallbackHandler, java.io.Serializable
This class is a callback handler for security context token in generator side. This instance is used to generate WSSSignature object and WSSEncryption object to generate a security context token.
If the dispach object is set, the implementation prioritize the policy set or WSSAPI. When the policy set is applied to the application, the WSSAPI will be disabled.
See Also:
SecurityContextToken, SCTGenerateCallback, Serialized Form

Constructor Summary

Constructor and Description
SCTGenerateCallbackHandler(SecurityContextToken token,WSSGenerationContext gencont,WSSConsumingContext concont,java.lang.String signatureAlgorithm,int signatureKeyLength,java.lang.String encryptionAlgorithm,int encryptionKeyLength,java.lang.String serviceLabel,java.lang.String clientLabel)
Class constructor
SCTGenerateCallbackHandler(SecurityContextToken token,WSSGenerationContext gencont,WSSConsumingContext concont,java.lang.String signatureAlgorithm,int signatureKeyLength,java.lang.String encryptionAlgorithm,int encryptionKeyLength,java.lang.String serviceLabel,java.lang.String clientLabel,javax.xml.ws.Dispatch dispatch)
Class constructor
SCTGenerateCallbackHandler(WSSGenerationContext gencont,WSSConsumingContext concont)
Class constructor
SCTGenerateCallbackHandler(WSSGenerationContext gencont,WSSConsumingContext concont,javax.xml.ws.Dispatch dispatch)
Class constructor
SCTGenerateCallbackHandler(WSSGenerationContext gencont,WSSConsumingContext concont,java.lang.String serviceEndpointAddress,boolean requiredDKT)
Class constructor
SCTGenerateCallbackHandler(WSSGenerationContext gencont,WSSConsumingContext concont,java.lang.String serviceEndpointAddress,boolean requiredDKT,javax.xml.ws.Dispatch dispatch)
Class constructor
SCTGenerateCallbackHandler(WSSGenerationContext gencont,WSSConsumingContext concont,java.lang.String serviceEndpointAddress,javax.xml.ws.Dispatch dispatch)
Class constructor
SCTGenerateCallbackHandler(WSSGenerationContext gencont,WSSConsumingContext concont,java.lang.String serviceEndpointAddress,java.lang.String encryptionAlgorithm)
Class constructor

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
getClientLabel()
Returns the label for client.
  1. int
getKeyBytesLength()
  1. int
getNonceBytesLength()
  1. boolean
getRequiredDKT()
  1. java.lang.String
getServerLabel()
Returns the label for service.
  1. void
handle(javax.security.auth.callback.Callback[] callbacks)
Sets necessary information to a SCTGenerateCallback object.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

SCTGenerateCallbackHandler

  1. public SCTGenerateCallbackHandler( WSSGenerationContext gencont,
  2. WSSConsumingContext concont,
  3. java.lang.String serviceEndpointAddress,
  4. boolean requiredDKT)
Class constructor
Parameters:
gencont - WSSGenerationContext object
concont - WSSConsumingContext object
serviceEndpointAddress - the address to require the security context token
requiredDKT - whether the derived key token is required or not

SCTGenerateCallbackHandler

  1. public SCTGenerateCallbackHandler( WSSGenerationContext gencont,
  2. WSSConsumingContext concont,
  3. java.lang.String serviceEndpointAddress,
  4. java.lang.String encryptionAlgorithm)
Class constructor
Parameters:
gencont - WSSGenerationContext object
concont - WSSConsumingContext object
serviceEndpointAddress - the address to require the security context token
encryptionAlgorithm - the algorithm for the encryption

SCTGenerateCallbackHandler

  1. public SCTGenerateCallbackHandler( WSSGenerationContext gencont,
  2. WSSConsumingContext concont)
Class constructor
Parameters:
gencont - WSSGenerationContext object
concont - WSSConsumingContext object

SCTGenerateCallbackHandler

  1. public SCTGenerateCallbackHandler( SecurityContextToken token,
  2. WSSGenerationContext gencont,
  3. WSSConsumingContext concont,
  4. java.lang.String signatureAlgorithm,
  5. int signatureKeyLength,
  6. java.lang.String encryptionAlgorithm,
  7. int encryptionKeyLength,
  8. java.lang.String serviceLabel,
  9. java.lang.String clientLabel)
Class constructor
Parameters:
token - the security context token
gencont - WSSGenerationContext object
concont - WSSConsumingContext object
signatureAlgorithm - the algorithm for the signature
signatureKeyLength - the length of key for the signature (bytes)
encryptionAlgorithm - the algorithm for the encryption
encryptionKeyLength - the length of key for the encryption (bytes)

SCTGenerateCallbackHandler

  1. public SCTGenerateCallbackHandler( WSSGenerationContext gencont,
  2. WSSConsumingContext concont,
  3. java.lang.String serviceEndpointAddress,
  4. boolean requiredDKT,
  5. javax.xml.ws.Dispatch dispatch)
Class constructor
Parameters:
gencont - WSSGenerationContext object
concont - WSSConsumingContext object
serviceEndpointAddress - the address to require the security context token
requiredDKT - whether the derived key token is required or not
dispatch - Dispatch of JAX-WS(@see javax.xml.ws.Dispatch)

SCTGenerateCallbackHandler

  1. public SCTGenerateCallbackHandler( WSSGenerationContext gencont,
  2. WSSConsumingContext concont,
  3. java.lang.String serviceEndpointAddress,
  4. javax.xml.ws.Dispatch dispatch)
Class constructor
Parameters:
gencont - WSSGenerationContext object
concont - WSSConsumingContext object
serviceEndpointAddress - the address to require the security context token
dispatch - Dispatch of JAX-WS(@see javax.xml.ws.Dispatch)

SCTGenerateCallbackHandler

  1. public SCTGenerateCallbackHandler( WSSGenerationContext gencont,
  2. WSSConsumingContext concont,
  3. javax.xml.ws.Dispatch dispatch)
Class constructor
Parameters:
gencont - WSSGenerationContext object
concont - WSSConsumingContext object
dispatch - Dispatch of JAX-WS(@see javax.xml.ws.Dispatch)

SCTGenerateCallbackHandler

  1. public SCTGenerateCallbackHandler( SecurityContextToken token,
  2. WSSGenerationContext gencont,
  3. WSSConsumingContext concont,
  4. java.lang.String signatureAlgorithm,
  5. int signatureKeyLength,
  6. java.lang.String encryptionAlgorithm,
  7. int encryptionKeyLength,
  8. java.lang.String serviceLabel,
  9. java.lang.String clientLabel,
  10. javax.xml.ws.Dispatch dispatch)
Class constructor
Parameters:
token - the security context token
gencont - WSSGenerationContext object
concont - WSSConsumingContext object
signatureAlgorithm - the algorithm for the signature
signatureKeyLength - the length of key for the signature (bytes)
encryptionAlgorithm - the algorithm for the encryption
encryptionKeyLength - the length of key for the encryption (bytes)
serviceLabel - the service label
clientLabel - the client label
dispatch - Dispatch of JAX-WS(@see javax.xml.ws.Dispatch)

Method Detail

handle

  1. public void handle(javax.security.auth.callback.Callback[] callbacks)
  2. throws java.io.IOException
  3. javax.security.auth.callback.UnsupportedCallbackException
Sets necessary information to a SCTGenerateCallback object.
Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
Parameters:
callbacks - array of Callback objects provided by the underlying security service which contains the information requested to be retrieved or displayed.
Throws:
java.io.IOException - if an input or output error occurs.
javax.security.auth.callback.UnsupportedCallbackException - if the implementation of this method does not support one or more of the Callbacks specified in the callbacks parameter.
See Also:
CallbackHandler.handle(javax.security.auth.callback.Callback[])

getClientLabel

  1. public java.lang.String getClientLabel( )
Returns the label for client.
Returns:
client label

getServerLabel

  1. public java.lang.String getServerLabel( )
Returns the label for service.
Returns:
service label

getRequiredDKT

  1. public boolean getRequiredDKT()

getKeyBytesLength

  1. public int getKeyBytesLength()

getNonceBytesLength

  1. public int getNonceBytesLength( )