com.ibm.wsspi.security.auth.callback

Class WSX509CertificateChainCallback

  • java.lang.Object
    • com.ibm.wsspi.security.auth.callback.WSX509CertificateChainCallback
  • All Implemented Interfaces:
    javax.security.auth.callback.Callback


    public class WSX509CertificateChainCallback
    extends java.lang.Object
    implements javax.security.auth.callback.Callback

    The WSX509CertificateChainCallback allows a Certificate Chain to be gathered by the CallbackHandler and pass it to the LoginModule stack. This is used by swamLoginModule, ltpaLoginModule and wsMapDefaultInboundLoginModule.

    Since:
    1.0
    Version:
    1.0
    See Also:
    CallbackHandler, WSCallbackHandlerImpl
    • Constructor Summary

      Constructors 
      Constructor and Description
      WSX509CertificateChainCallback(java.lang.String prompt)
      Construct a WSX509CertificateChainCallback object with a prompt hint.
      WSX509CertificateChainCallback(java.lang.String prompt, java.security.cert.X509Certificate[] certChain)
      Construct a WSX509CertificateChainCallback object with a prompt hint and a java.security.cert.Certificate[].
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String getPrompt()
      Return the prompt.
      java.security.cert.X509Certificate[] getX509CertificateChain()
      Return the X509CertificateChain.
      void setX509CertificateChain(java.security.cert.X509Certificate[] certChain)
      Set the X509Certificate chain.
      java.lang.String toString()
      Returns the name of the Callback.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WSX509CertificateChainCallback

        public WSX509CertificateChainCallback(java.lang.String prompt)

        Construct a WSX509CertificateChainCallback object with a prompt hint.

        Parameters:
        prompt - The prompt hint.
      • WSX509CertificateChainCallback

        public WSX509CertificateChainCallback(java.lang.String prompt,
                                      java.security.cert.X509Certificate[] certChain)

        Construct a WSX509CertificateChainCallback object with a prompt hint and a java.security.cert.Certificate[].

        Parameters:
        prompt - The prompt hint.
        List - list
    • Method Detail

      • setX509CertificateChain

        public void setX509CertificateChain(java.security.cert.X509Certificate[] certChain)

        Set the X509Certificate chain.

        Parameters:
        java.security.cert.X509Certificate[]: - The X509Certificate chain.
      • getX509CertificateChain

        public java.security.cert.X509Certificate[] getX509CertificateChain()

        Return the X509CertificateChain. If the chain instance set in Constructor is null, then null is returned.

        Returns:
        The certificate chain, could be null.
      • getPrompt

        public java.lang.String getPrompt()

        Return the prompt. If the prompt set in Constructor is null, then null is returned.

        Returns:
        The prompt, could be null.
      • toString

        public java.lang.String toString()

        Returns the name of the Callback. Typically, it is the name of the class.

        Overrides:
        toString in class java.lang.Object
        Returns:
        The name of the Callback.
IBM WebSphere Application ServerTM
Release 8.5