Class X509CertificateCallback
java.lang.Object
com.sun.identity.authentication.spi.X509CertificateCallback
- All Implemented Interfaces:
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.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a newX509CertificateCallback.Builderinstance.Returns the retrieved certificate.Returns the prompt.booleanReturns the required signature flag.voidsetCertificate(X509Certificate certificate) Sets the retrieved certificate.voidsetReqSignature(boolean required) Sets the required signature flag.
-
Method Details
-
getPrompt
Returns the prompt.- Returns:
- the prompt.
-
setCertificate
Sets the retrieved certificate.- Parameters:
certificate- the retrieved certificate contents (which may be null)
-
getCertificate
Returns the retrieved certificate.- Returns:
- the retrieved certificate contents (which may be null).
-
setReqSignature
Sets the required signature flag.- Parameters:
required-trueif signature is required.
-
getReqSignature
Returns the required signature flag.- Returns:
- the retrieved required signature flag.
-
builder
Creates a newX509CertificateCallback.Builderinstance.- Returns:
- A new
X509CertificateCallback.Builderinstance.
-