Class TrustStoreCallback
- java.lang.Object
-
- javax.security.auth.message.callback.TrustStoreCallback
-
- All Implemented Interfaces:
javax.security.auth.callback.Callback
public class TrustStoreCallback extends java.lang.Object implements javax.security.auth.callback.Callback
Callback for trusted certificate KeyStore.
A trusted certificate KeyStore may be used to determine whether a given certificate chain can be trusted.
- Since:
- May 11, 2006
- Version:
- $Revision$
-
-
Field Summary
Fields Modifier and Type Field Description private java.security.KeyStore
trustStore
-
Constructor Summary
Constructors Constructor Description TrustStoreCallback()
Create a new TrustStoreCallback.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getTrustStore
public java.security.KeyStore getTrustStore()
Used by the TrustStore user to obtain the TrustStore set within the Callback.
- Returns:
- The trusted certificate KeyStore. The KeyStore is guaranteed to already be loaded.
-
setTrustStore
public void setTrustStore(java.security.KeyStore trustStore)
Used by the CallbackHandler to set the trusted certificate keystore within the Callback.
- Parameters:
trustStore
- The trusted certificate KeyStore, which must already be loaded.
-
-