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.Callback
This 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.String
getClientLabel()
Returns the client labeljava.lang.String
getEncryptionAlgorithm()
Returns the algorithm for the encryptionjava.lang.String
getServiceLabel()
Returns the service labelvoid
handle(javax.security.auth.callback.Callback[] callbacks)
Sets necessary information to aSCTConsumeCallback
object.void
setClientLabel(java.lang.String clientLabel)
Sets the client labelvoid
setEncryptionAlgorithm(java.lang.String encryptionAlgorithm)
Sets the algorithm for the encryptionvoid
setServiceLabel(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.UnsupportedCallbackException
Sets necessary information to aSCTConsumeCallback
object.- Parameters:
callbacks
- array ofCallback
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 theCallback
s specified in the callbacks parameter.- See Also:
CallbackHandler.handle(javax.security.auth.callback.Callback[])
-
-