Class HsmSecretStoreHeaplet

  • All Implemented Interfaces:
    Heaplet

    public class HsmSecretStoreHeaplet
    extends GenericHeaplet
    This heaplet represents an instance of a HsmSecretStoreHeaplet.
     {
           "type": "HsmSecretStore",
           "config": {
             "providerName":         string                  [ REQUIRED - Pre-installed PKCS#11 Provider name. ]
             "storePassword":        secret                  [ REQUIRED - password to access the KeyStore.]
             "secretsProvider":      Secrets Provider        [ OPTIONAL - resolve HSM password.
                                                                          defaults to route's secret service]
             "leaseExpiry":          expression<duration>    [ OPTIONAL - defaults to 5 minutes.]
             "mappings": [                                   [ REQUIRED - array of object.]
                 {
                  "secretId":              expression                 [ REQUIRED - ID of the secret.]
                  "aliases":             [ expression  ]              [ REQUIRED - list of aliases corresponding to the
                                                                       above secret. Order matter here and the first is
                                                                       the active secret.]
                }
           }
        }
     

    * One of file or providerName is required.

    Example:

     {
           "type": "HsmSecretStore",
           "config": {
               "providerName": "SunPKCS11-SoftHSM",
               "storePassword": "keystore.pass",
               "mappings": [{
                   "secretId": "global.pcookie.crypt",
                   "aliases": [ "rsapair72", "rsapair72-inactive" ]
               }]
            }
        }
     
    See Also:
    Oracle PKCS#11 Configuration Guide., HsmKeyStoreLoader
    • Constructor Detail

      • HsmSecretStoreHeaplet

        public HsmSecretStoreHeaplet()
    • Method Detail