com.ibm.websphere.wssecurity.callbackhandler

Class X509GenerateCallbackHandler

  1. java.lang.Object
  2. extended bycom.ibm.websphere.wssecurity.callbackhandler.X509GenerateCallbackHandler
All implemented interfaces:
java.io.Serializable, javax.security.auth.callback.CallbackHandler

  1. public class X509GenerateCallbackHandler
  2. extends java.lang.Object
  3. 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.
See Also:
X509Token, X509PKCS7Token, X509PKIPathToken, X509GenerateCallback, Serialized Form

Constructor Summary

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

Modifier and Type Method and Description
  1. void
handle(javax.security.auth.callback.Callback[] callbacks)
Sets the necessary information to a X509GenerateCallback object.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

X509GenerateCallbackHandler

  1. public X509GenerateCallbackHandler( java.util.Map<java.lang.Object,java.lang.Object> properties)
Class constructor.
Parameters:
properties - map including key-value pairs

X509GenerateCallbackHandler

  1. public X509GenerateCallbackHandler( java.lang.String storeRef,
  2. java.lang.String storePath,
  3. java.lang.String storeType,
  4. char[] storePassword,
  5. java.lang.String alias,
  6. char[] keyPassword,
  7. java.lang.String keyName,
  8. java.util.List<java.security.cert.CertStore> certStores)
Class constructor with the specified keystore information.
Parameters:
storeRef - reference name of the keystore
storePath - file path from which the keystore is loaded
storePassword - password used to check the integrity of the keystore or the password used to unlock the keystore
storeType - type of the keystore
alias - alias name
keyPassword - password for recovering the key
keyName - name of the key
certStores - list of certificate stores

X509GenerateCallbackHandler

  1. public X509GenerateCallbackHandler( boolean requestorCertificate,
  2. boolean identityAssertion)
Class constructor.
Parameters:
requestorCertificate - true if the certificate of requestor is used
identityAssertion - true if identity assertion is used

Method Detail

handle

  1. public void handle(javax.security.auth.callback.Callback[] callbacks)
  2. throws java.io.IOException
  3. javax.security.auth.callback.UnsupportedCallbackException
Sets the necessary information to a X509GenerateCallback object.
Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
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[])