Class WSX509CertificateChainCallback

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

public class WSX509CertificateChainCallback extends Object implements Callback
JAAS Callback for certificates for WebSphere Application Server

The WSX509CertificateChainCallback allows a certificate chain to be gathered by a CallbackHandler and passed to a LoginModule stack.

  • Constructor Details

    • WSX509CertificateChainCallback

      public WSX509CertificateChainCallback(String prompt)
      Construct a WSX509CertificateChainCallback object with a prompt hint.
      Parameters:
      prompt - A String prompt hint.
    • WSX509CertificateChainCallback

      public WSX509CertificateChainCallback(String prompt, X509Certificate[] certChain)

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

      Parameters:
      prompt - A String prompt hint.
      certChain - An array of java.security.cert.X509Certificate
  • Method Details

    • setX509CertificateChain

      public void setX509CertificateChain(X509Certificate[] certChain)
      Set the certificate chain
      Parameters:
      certChain - an array of java.security.cert.X509Certificate[]
    • getX509CertificateChain

      public X509Certificate[] getX509CertificateChain()
      Get the certificate chain
      Returns:
      an array of java.security.cert.X509Certificate[]
    • getPrompt

      public String getPrompt()
      Returns:
      the String prompt
    • toString

      public String toString()

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

      Overrides:
      toString in class Object
      Returns:
      The name of the Callback.