public final class SecretKeyPropertyFormat extends Object implements SecretPropertyFormat
Constructor and Description |
---|
SecretKeyPropertyFormat(SecretPropertyFormat genericFormat,
String keyAlgorithm)
Initialises the format with the given raw generic secret format and the given key algorithm.
|
Modifier and Type | Method and Description |
---|---|
SecretBuilder |
decode(String propertyValue)
Decodes the input property value, setting relevant properties on a
SecretBuilder object. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decodeToPromise
public SecretKeyPropertyFormat(SecretPropertyFormat genericFormat, String keyAlgorithm)
genericFormat
- the format of the generic secrets to convert to secret keys.keyAlgorithm
- the key algorithm such as "AES" or "Hmac".public SecretBuilder decode(String propertyValue) throws NoSuchSecretException
SecretPropertyFormat
SecretBuilder
object.decode
in interface SecretPropertyFormat
propertyValue
- the value of the secret property.NoSuchSecretException
- If the property value does not contain a value that can be decoded.Copyright © 2010-2018, ForgeRock All Rights Reserved.