Class X509CertificateCallback

java.lang.Object
com.sun.identity.authentication.spi.X509CertificateCallback
All Implemented Interfaces:
Callback

@Supported public final class X509CertificateCallback extends Object implements Callback
Underlying security services instantiate and pass an X509CertificateCallback to the invokeCallback method of a CallbackHandler to retrieve the contents of an X.509 Certificate.
  • Method Details

    • getPrompt

      @Supported public String getPrompt()
      Returns the prompt.
      Returns:
      the prompt.
    • setCertificate

      @Supported public void setCertificate(X509Certificate certificate)
      Sets the retrieved certificate.
      Parameters:
      certificate - the retrieved certificate contents (which may be null)
    • getCertificate

      @Supported public X509Certificate getCertificate()
      Returns the retrieved certificate.
      Returns:
      the retrieved certificate contents (which may be null).
    • setReqSignature

      @Supported public void setReqSignature(boolean required)
      Sets the required signature flag.
      Parameters:
      required - true if signature is required.
    • getReqSignature

      @Supported public boolean getReqSignature()
      Returns the required signature flag.
      Returns:
      the retrieved required signature flag.
    • builder

      Creates a new X509CertificateCallback.Builder instance.
      Returns:
      A new X509CertificateCallback.Builder instance.