Uses of Enum Class
org.forgerock.secrets.keys.KeyUsage
Package
Description
Provides a unified API for accessing secrets of various kinds.
Contains cryptographic key related API objects.
-
Uses of KeyUsage in org.forgerock.secrets
Modifier and TypeMethodDescriptionSecretBuilder.getAllowedKeyUsages()
The allowed key usages of this key.Modifier and TypeMethodDescriptionstatic SecretConstraint<CryptoKey>
SecretConstraint.allowedKeyUsages
(KeyUsage first, KeyUsage... rest) Enforces that the key satisfies at least one of the given key usage constraints.static SecretConstraint<CryptoKey>
SecretConstraint.requiredKeyUsages
(KeyUsage first, KeyUsage... rest) Enforces that the key satisfies all of the given key usage constraints.Modifier and TypeMethodDescriptionstatic SecretConstraint<CryptoKey>
SecretConstraint.allowedKeyUsages
(Set<KeyUsage> keyUsages) Enforces that the key satisfies at least one of the given key usage constraints.Sets the allowed key usages for this key.static SecretConstraint<CryptoKey>
SecretConstraint.requiredKeyUsages
(Set<KeyUsage> keyUsages) Enforces that the key satisfies all of the given key usage constraints. -
Uses of KeyUsage in org.forgerock.secrets.keys
Modifier and TypeMethodDescriptionstatic KeyUsage
Returns the enum constant of this class with the specified name.static KeyUsage[]
KeyUsage.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionKeyUsage.forKeyType
(Class<? extends CryptoKey> keyType) Returns the set of all key usages that are applicable to the given key type.KeyUsage.forWebCryptoName
(String keyOperation) Converts a Web Crypto/JWK key operation name into the equivalent key usage constant.KeyUsage.fromCertificate
(Certificate certificate) Determines what usages are allowed for a public key based on the associated certificate.KeyUsage.fromX509KeyUsageBits
(boolean[] bits) Converts an X.509 KeyUsage bit vector into a corresponding set of usage values.CryptoKey.getKeyUsages()
Returns the key usages that the key can be used for.Modifier and TypeMethodDescriptionstatic boolean[]
KeyUsage.toX509KeyUsageBits
(Set<KeyUsage> usages) Converts a set of key usage values to an X.509 KeyUsage constraint bit string.