Class X509CertificateCallback
- java.lang.Object
-
- com.sun.identity.authentication.spi.X509CertificateCallback
-
-
Constructor Summary
Constructors Constructor Description X509CertificateCallback(String prompt)CreatesX509CertificateCallbackobject with a prompt.X509CertificateCallback(String prompt, X509Certificate certificate)Construct anX509CertificateCallbackwith a prompt and X.509 Certificate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X509CertificategetCertificate()Returns the retrieved certificate.StringgetPrompt()Returns the prompt.booleangetReqSignature()Returns the reqSignature flag.byte[]getSignature()Returns the signature.voidsetCertificate(X509Certificate certificate)Sets the retrieved certificate.voidsetReqSignature(boolean required)Sets the required signature flag.
-
-
-
Constructor Detail
-
X509CertificateCallback
public X509CertificateCallback(String prompt)
CreatesX509CertificateCallbackobject with a prompt.- Parameters:
prompt- the prompt used to request the X.509 Certificate.- Throws:
IllegalArgumentException- ifpromptis null or ifprompthas a length of 0 (zero).
-
X509CertificateCallback
public X509CertificateCallback(String prompt, X509Certificate certificate)
Construct anX509CertificateCallbackwith a prompt and X.509 Certificate.- Parameters:
prompt- the prompt used to request the X.509 Certificatecertificate- the X.509 Certificate- Throws:
IllegalArgumentException- ifpromptis null or ifprompthas a length of 0 (zero).
-
-
Method Detail
-
getPrompt
public String getPrompt()
Returns the prompt.- Returns:
- the prompt.
-
setCertificate
public void setCertificate(X509Certificate certificate)
Sets the retrieved certificate.- Parameters:
certificate- the retrieved certificate contents (which may be null)
-
getCertificate
public X509Certificate getCertificate()
Returns the retrieved certificate.- Returns:
- the retrieved certificate contents (which may be null).
-
setReqSignature
public void setReqSignature(boolean required)
Sets the required signature flag.- Parameters:
required-trueif signature is required.
-
getReqSignature
public boolean getReqSignature()
Returns the reqSignature flag.- Returns:
- the retrieved reqSignature flag.
-
getSignature
public byte[] getSignature()
Returns the signature.- Returns:
- the retrieved signature set by sdk client.
-
-