com.ibm.websphere.wssecurity.callbackhandler

Class SCTConsumeCallback

  1. java.lang.Object
  2. extended bycom.ibm.websphere.wssecurity.callbackhandler.SCTConsumeCallback
All implemented interfaces:
javax.security.auth.callback.Callback

  1. public class SCTConsumeCallback
  2. extends java.lang.Object
  3. implements javax.security.auth.callback.Callback
This is a callback class for the security context token in consumer side.
See Also:
SCTConsumeCallbackHandler

Constructor Summary

Constructor and Description
SCTConsumeCallback()

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. java.lang.String
getServiceLabel()
Returns the service label
  1. void
handle(javax.security.auth.callback.Callback[] callbacks)
Sets necessary information to a SCTConsumeCallback object.
  1. void
setClientLabel(java.lang.String clientLabel)
Sets the client label
  1. void
setEncryptionAlgorithm(java.lang.String encryptionAlgorithm)
Sets the algorithm for the encryption
  1. void
setServiceLabel(java.lang.String serviceLabel)
Sets the service label
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

SCTConsumeCallback

  1. public SCTConsumeCallback()

Method Detail

setServiceLabel

  1. public void setServiceLabel(java.lang.String serviceLabel)
Sets the service label

setClientLabel

  1. public void setClientLabel(java.lang.String clientLabel)
Sets the client label
Parameters:
clientLabel - client label

setEncryptionAlgorithm

  1. public void setEncryptionAlgorithm( java.lang.String encryptionAlgorithm)
Sets the algorithm for the encryption
Parameters:
encryptionAlgorithm - encryption algorithm

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

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 SCTConsumeCallback object.
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[])