com.ibm.websphere.wssecurity.callbackhandler
Class X509GenerateCallbackHandler
- java.lang.Object
-
- com.ibm.websphere.wssecurity.callbackhandler.X509GenerateCallbackHandler
-
- All Implemented Interfaces:
- java.io.Serializable, javax.security.auth.callback.CallbackHandler
public class X509GenerateCallbackHandler extends java.lang.Object implements javax.security.auth.callback.CallbackHandler, java.io.Serializable
This class is a callback handler for X.509 binary security token in consumer side. This instance is used to generate WSSSignature object and WSSEncryption object to generate a X.509 binary security token.
-
-
Constructor Summary
Constructors Constructor and Description X509GenerateCallbackHandler(boolean requestorCertificate, boolean identityAssertion)
Class constructor.X509GenerateCallbackHandler(java.util.Map<java.lang.Object,java.lang.Object> properties)
Class constructor.X509GenerateCallbackHandler(java.lang.String storeRef, java.lang.String storePath, java.lang.String storeType, char[] storePassword, java.lang.String alias, char[] keyPassword, java.lang.String keyName, java.util.List<java.security.cert.CertStore> certStores)
Class constructor with the specified keystore information.
-
Method Summary
Methods Modifier and Type Method and Description void
handle(javax.security.auth.callback.Callback[] callbacks)
Sets the necessary information to aX509GenerateCallback
object.
-
-
-
Constructor Detail
-
X509GenerateCallbackHandler
public X509GenerateCallbackHandler(java.util.Map<java.lang.Object,java.lang.Object> properties)
Class constructor.- Parameters:
properties
- map including key-value pairs
-
X509GenerateCallbackHandler
public X509GenerateCallbackHandler(java.lang.String storeRef, java.lang.String storePath, java.lang.String storeType, char[] storePassword, java.lang.String alias, char[] keyPassword, java.lang.String keyName, java.util.List<java.security.cert.CertStore> certStores)
Class constructor with the specified keystore information.- Parameters:
storeRef
- reference name of the keystorestorePath
- file path from which the keystore is loadedstorePassword
- password used to check the integrity of the keystore or the password used to unlock the keystorestoreType
- type of the keystorealias
- alias namekeyPassword
- password for recovering the keykeyName
- name of the keycertStores
- list of certificate stores
-
X509GenerateCallbackHandler
public X509GenerateCallbackHandler(boolean requestorCertificate, boolean identityAssertion)
Class constructor.- Parameters:
requestorCertificate
- true if the certificate of requestor is usedidentityAssertion
- true if identity assertion is used
-
-
Method Detail
-
handle
public void handle(javax.security.auth.callback.Callback[] callbacks) throws java.io.IOException, javax.security.auth.callback.UnsupportedCallbackException
Sets the necessary information to aX509GenerateCallback
object.- Specified by:
handle
in interfacejavax.security.auth.callback.CallbackHandler
- 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[])
-
-