com.ibm.websphere.wssecurity.callbackhandler
Class SCTConsumeCallback
- java.lang.Object
-
- 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.CallbackThis is a callback class for the security context token in consumer side.- See Also:
SCTConsumeCallbackHandler
-
-
Constructor Summary
Constructors Constructor and Description SCTConsumeCallback()
-
Method Summary
Methods Modifier and Type Method and Description java.lang.StringgetClientLabel()Returns the client labeljava.lang.StringgetEncryptionAlgorithm()Returns the algorithm for the encryptionjava.lang.StringgetServiceLabel()Returns the service labelvoidhandle(javax.security.auth.callback.Callback[] callbacks)Sets necessary information to aSCTConsumeCallbackobject.voidsetClientLabel(java.lang.String clientLabel)Sets the client labelvoidsetEncryptionAlgorithm(java.lang.String encryptionAlgorithm)Sets the algorithm for the encryptionvoidsetServiceLabel(java.lang.String serviceLabel)Sets the service label
-
-
-
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.UnsupportedCallbackExceptionSets necessary information to aSCTConsumeCallbackobject.- Parameters:
callbacks- array ofCallbackobjects 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 theCallbacks specified in the callbacks parameter.- See Also:
CallbackHandler.handle(javax.security.auth.callback.Callback[])
-
-