com.ibm.websphere.wssecurity.callbackhandler

Class SCTConsumeCallbackHandler

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

  1. public class SCTConsumeCallbackHandler
  2. extends java.lang.Object
  3. implements javax.security.auth.callback.CallbackHandler, java.io.Serializable
This class is a callback handler for SecurityContextToken in consumer side. This instance is used to generate WSSVerification object and WSSDecryption object to validate a security context token.
See Also:
SecurityContextToken, SCTConsumeCallback, Serialized Form

Constructor Summary

Constructor and Description
SCTConsumeCallbackHandler(java.lang.String serviceLabel,java.lang.String clientLabel,java.lang.String encryptionAlgorithm)
Class constructor.
SCTConsumeCallbackHandler(java.lang.String serviceLabel,java.lang.String clientLabel,java.lang.String encryptionAlgorithm,boolean reqireDerivedKey,int derivedKeyLength,int nonceLength)
Class constructor.
SCTConsumeCallbackHandler(java.lang.String serviceLabel,java.lang.String clientLabel,java.lang.String encryptionAlgorithm,boolean reqireDerivedKey,int derivedKeyLength,int nonceLength,WSSDecryption dec,WSSVerification ver)
Class constructor.
SCTConsumeCallbackHandler(java.lang.String serviceLabel,java.lang.String clientLabel,java.lang.String encryptionAlgorithm,WSSDecryption dec,WSSVerification ver)
Class constructor.

Method Summary

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

Constructor Detail

SCTConsumeCallbackHandler

  1. public SCTConsumeCallbackHandler( java.lang.String serviceLabel,
  2. java.lang.String clientLabel,
  3. java.lang.String encryptionAlgorithm)
Class constructor.
Parameters:
serviceLabel - service label
clientLabel - client label
encryptionAlgorithm - encryption algorithm

SCTConsumeCallbackHandler

  1. public SCTConsumeCallbackHandler( java.lang.String serviceLabel,
  2. java.lang.String clientLabel,
  3. java.lang.String encryptionAlgorithm,
  4. WSSDecryption dec,
  5. WSSVerification ver)
Class constructor.
Parameters:
serviceLabel - service label
clientLabel - client label
encryptionAlgorithm - encryption algorithm

SCTConsumeCallbackHandler

  1. public SCTConsumeCallbackHandler( java.lang.String serviceLabel,
  2. java.lang.String clientLabel,
  3. java.lang.String encryptionAlgorithm,
  4. boolean reqireDerivedKey,
  5. int derivedKeyLength,
  6. int nonceLength)
Class constructor.
Parameters:
serviceLabel - service label
clientLabel - client label
encryptionAlgorithm - encryption algorithm

SCTConsumeCallbackHandler

  1. public SCTConsumeCallbackHandler( java.lang.String serviceLabel,
  2. java.lang.String clientLabel,
  3. java.lang.String encryptionAlgorithm,
  4. boolean reqireDerivedKey,
  5. int derivedKeyLength,
  6. int nonceLength,
  7. WSSDecryption dec,
  8. WSSVerification ver)
Class constructor.
Parameters:
serviceLabel - service label
clientLabel - client label
encryptionAlgorithm - encryption algorithm

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 the necessary information to a SCTConsumeCallback 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.

getServiceLabel

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

getClientLabel

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

getEncryptionAlgorithm

  1. public java.lang.String getEncryptionAlgorithm( )
Returns the algorithm for the encryption
Returns:
encryption algorithm

getServerLabel

  1. public java.lang.String getServerLabel( )

getRequiredDKT

  1. public boolean getRequiredDKT()

getKeyBytesLength

  1. public int getKeyBytesLength()

getNonceBytesLength

  1. public int getNonceBytesLength( )