Package org.forgerock.openig.secrets
Class SecretsUtils
java.lang.Object
org.forgerock.openig.secrets.SecretsUtils
Utility class to use the Commons Secret API.
- Since:
- 6.5
-
Method Summary
Modifier and TypeMethodDescriptionstatic SecretConstraint<CryptoKey>
allowedKeyType
(KeyType expected) Enforce that aCryptoKey
satisfies the given key type constraint.
-
Method Details
-
allowedKeyType
Enforce that aCryptoKey
satisfies the given key type constraint.- Parameters:
expected
- The expectedKeyType
(i.e:KeyType.SECRET
) the given Crypto Key must satisfy.- Returns:
- the
SecretConstraint
.
-