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
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a newX509CertificateCallback.Builder
instance.Returns the retrieved certificate.Returns the prompt.boolean
Returns the required signature flag.void
setCertificate
(X509Certificate certificate) Sets the retrieved certificate.void
setReqSignature
(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
-true
if signature is required.
-
getReqSignature
Returns the required signature flag.- Returns:
- the retrieved required signature flag.
-
builder
Creates a newX509CertificateCallback.Builder
instance.- Returns:
- A new
X509CertificateCallback.Builder
instance.
-