IBM WebSphere Application ServerTM
Release 8

com.ibm.websphere.wssecurity.callbackhandler
Class SCTConsumeCallback

java.lang.Object
  extended by com.ibm.websphere.wssecurity.callbackhandler.SCTConsumeCallback
All Implemented Interfaces:
javax.security.auth.callback.Callback

public class SCTConsumeCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback

This is a callback class for the security context token in consumer side.

See Also:
SCTConsumeCallbackHandler

Constructor Summary
SCTConsumeCallback()
           
 
Method Summary
 java.lang.String getClientLabel()
          Returns the client label
 java.lang.String getEncryptionAlgorithm()
          Returns the algorithm for the encryption
 java.lang.String getServiceLabel()
          Returns the service label
 void handle(javax.security.auth.callback.Callback[] callbacks)
          Sets necessary information to a SCTConsumeCallback object.
 void setClientLabel(java.lang.String clientLabel)
          Sets the client label
 void setEncryptionAlgorithm(java.lang.String encryptionAlgorithm)
          Sets the algorithm for the encryption
 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

public SCTConsumeCallback()
Method Detail

setServiceLabel

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

Parameters:
servicLabel - service label

setClientLabel

public void setClientLabel(java.lang.String clientLabel)
Sets the client label

Parameters:
clientLabel - client label

setEncryptionAlgorithm

public void setEncryptionAlgorithm(java.lang.String encryptionAlgorithm)
Sets the algorithm for the encryption

Parameters:
encryptionAlgorithm - encryption algorithm

getServiceLabel

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

Returns:
service label

getClientLabel

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

Returns:
client label

getEncryptionAlgorithm

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

Returns:
encryption algorithm

handle

public void handle(javax.security.auth.callback.Callback[] callbacks)
            throws java.io.IOException,
                   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[])

IBM WebSphere Application ServerTM
Release 8