com.ibm.wsspi.security.auth.callback
Class WSX509CertificateChainCallback
- java.lang.Object
com.ibm.wsspi.security.auth.callback.WSX509CertificateChainCallback
All implemented interfaces:
javax.security.auth.callback.Callback
- 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.
Since:
1.0
Version:
1.0
See Also:
CallbackHandler,
WSCallbackHandlerImplConstructor Summary
| 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[].
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
getPrompt()
Return the prompt.
|
|
getX509CertificateChain()
Return the X509CertificateChain.
|
|
setX509CertificateChain(java.security.cert.X509Certificate[] certChain)
Set the X509Certificate chain.
|
|
toString()
Returns the name of the Callback.
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail
WSX509CertificateChainCallback
- public WSX509CertificateChainCallback( java.lang.String prompt)
Parameters:
prompt - The prompt hint. WSX509CertificateChainCallback
- 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[].
Parameters:
prompt - The prompt hint. Method Detail
setX509CertificateChain
- public void setX509CertificateChain( java.security.cert.X509Certificate[] certChain)
Set the X509Certificate chain.
getX509CertificateChain
- public java.security.cert.X509Certificate[] getX509CertificateChain( )
Return the X509CertificateChain. If the chain instance set in
Constructor is null, then null is returned.
Returns:
The certificate chain, could be
null. getPrompt
- public java.lang.String getPrompt( )
Return the prompt. If the prompt set in Constructor
is null, then null is returned.
Returns:
The prompt, could be
null. toString
- public java.lang.String toString( )
Returns the name of the Callback. Typically, it is the name of the class.
Overrides:
toString in class java.lang.Object
Returns:
The name of the Callback.
Construct a
WSX509CertificateChainCallbackobject with a prompt hint.