Class SecretsTrustManagerHeaplet

  • All Implemented Interfaces:
    Heaplet

    public class SecretsTrustManagerHeaplet
    extends GenericHeaplet
    A SecretsTrustManagerHeaplet acts as a factory of SecretsTrustManager.

    It is meant to be used when certificates that are to be trusted are available through the ForgeRock Secrets API (when using KeyStoreSecretStore for instance).

     {
           "type": "SecretsTrustManager",
           "config": {
             "verificationSecretId":  secret-id          [ REQUIRED - Secret ID used to retrieve trusted certificates. ]
             "secretsProvider"     :  Secrets Provider   [ REQUIRED - Resolves trusted certificates. ]
             "checkRevocation"     :  boolean            [ OPTIONAL - Enable/Disable revocation check (default to true) ]
           }
        }
     

    Usage example with a keystore

    Trusts a list of certificates found in a given keystore.

     {
          "type": "SecretsTrustManager",
          "config": {
            "verificationSecretId": "trust.manager.secret.id",
            "secretsProvider": {
              "type": "KeyStoreSecretStore",
              "config": {
                "file": "&{ig.istance.dir}/certs/truststore.p12",
                "storePassword": "keystore.pass",
                "secretsProvider": "SecretsPasswords",
                "mappings": [{
                  "secretId": "trust.manager.secret.id",
                  "aliases": [ "alias-of-trusted-cert-1", "alias-of-trusted-cert-2" ]
                }]
              }
            }
          }
       }
     
    See Also:
    SecretsTrustManager, SecretsProvider.getTrustManager(Purpose, Options)
    • Constructor Detail

      • SecretsTrustManagerHeaplet

        public SecretsTrustManagerHeaplet()
    • Method Detail