Class TrustStoreCallback

java.lang.Object
javax.security.auth.message.callback.TrustStoreCallback
All Implemented Interfaces:
Callback

public class TrustStoreCallback extends Object implements Callback
Callback for trusted certificate KeyStore.

A trusted certificate KeyStore may be used to determine whether a given certificate chain can be trusted.

  • Constructor Details

    • TrustStoreCallback

      public TrustStoreCallback()
      Create a TrustStoreCallback.
  • Method Details

    • setTrustStore

      public void setTrustStore(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.
    • getTrustStore

      public 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.