Class SecretKeyPropertyFormat

java.lang.Object
org.forgerock.secrets.propertyresolver.SecretKeyPropertyFormat
All Implemented Interfaces:
SecretPropertyFormat, SecretDecoder

public final class SecretKeyPropertyFormat extends Object implements SecretPropertyFormat
Wraps a property format that decodes raw bytes and converts it into a property format for extracting secret keys using some algorithm. This can be used to convert generic bytes into AES encryption keys or HMAC keys, for instance.
  • Constructor Details

    • SecretKeyPropertyFormat

      public SecretKeyPropertyFormat(SecretPropertyFormat genericFormat, String keyAlgorithm)
      Initialises the format with the given raw generic secret format and the given key algorithm.
      Parameters:
      genericFormat - the format of the generic secrets to convert to secret keys.
      keyAlgorithm - the key algorithm such as "AES" or "Hmac".
  • Method Details