public class TrustStoreCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback
A trusted certificate KeyStore may be used to determine whether a given certificate chain can be trusted.
Constructor and Description |
---|
TrustStoreCallback() |
Modifier and Type | Method and Description |
---|---|
java.security.KeyStore |
getTrustStore()
Used by the TrustStore user to obtain the TrustStore set within the Callback.
|
void |
setTrustStore(java.security.KeyStore trustStore)
Used by the CallbackHandler to set the trusted certificate keystore within the Callback.
|
public void setTrustStore(java.security.KeyStore trustStore)
trustStore
- The trusted certificate KeyStore, which must already be loaded.public java.security.KeyStore getTrustStore()