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.
    See Also:
    X509Token, X509PKCS7Token, X509PKIPathToken, X509GenerateCallback, Serialized Form
    • 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 a X509GenerateCallback object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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

        public X509GenerateCallbackHandler(boolean requestorCertificate,
                                   boolean identityAssertion)
        Class constructor.
        Parameters:
        requestorCertificate - true if the certificate of requestor is used
        identityAssertion - 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 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[])
IBM WebSphere Application ServerTM
Release 9.0