public class WSX509CertificateChainCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback
The WSX509CertificateChainCallback
allows a Certificate Chain to be
gathered by the CallbackHandler
and pass it to the LoginModule
stack. This is used by swamLoginModule
, ltpaLoginModule
and wsMapDefaultInboundLoginModule
.
CallbackHandler
,
WSCallbackHandlerImpl
Constructor and Description |
---|
WSX509CertificateChainCallback(java.lang.String prompt)
Construct a
WSX509CertificateChainCallback object with a prompt hint. |
WSX509CertificateChainCallback(java.lang.String prompt,
java.security.cert.X509Certificate[] certChain)
Construct a
WSX509CertificateChainCallback object with a prompt hint and
a java.security.cert.Certificate[]. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPrompt()
Return the prompt.
|
java.security.cert.X509Certificate[] |
getX509CertificateChain()
Return the X509CertificateChain.
|
void |
setX509CertificateChain(java.security.cert.X509Certificate[] certChain)
Set the X509Certificate chain.
|
java.lang.String |
toString()
Returns the name of the Callback.
|
public WSX509CertificateChainCallback(java.lang.String prompt)
Construct a WSX509CertificateChainCallback
object with a prompt hint.
prompt
- The prompt hint.public WSX509CertificateChainCallback(java.lang.String prompt, java.security.cert.X509Certificate[] certChain)
Construct a WSX509CertificateChainCallback
object with a prompt hint and
a java.security.cert.Certificate[].
prompt
- The prompt hint.List
- listpublic void setX509CertificateChain(java.security.cert.X509Certificate[] certChain)
Set the X509Certificate chain.
java.security.cert.X509Certificate[]:
- The X509Certificate chain.public java.security.cert.X509Certificate[] getX509CertificateChain()
Return the X509CertificateChain. If the chain instance set in
Constructor is null
, then null
is returned.
null
.public java.lang.String getPrompt()
Return the prompt. If the prompt set in Constructor
is null
, then null
is returned.
null
.public java.lang.String toString()
Returns the name of the Callback. Typically, it is the name of the class.
toString
in class java.lang.Object