Uses of Enum Class
org.forgerock.secrets.keys.KeyUsage
Packages that use KeyUsage
Package
Description
Classes and interfaces for creating and manipulating JWKs.
Provides a unified API for accessing secrets of various kinds.
Contains cryptographic key related API objects.
-
Uses of KeyUsage in org.forgerock.json.jose.jwk
Methods in org.forgerock.json.jose.jwk that return types with arguments of type KeyUsageModifier and TypeMethodDescriptionJWK.keyUsages()Determines the allowed key usages for this JWK by considering theKeyOperationand/or key use constraints attached to it. -
Uses of KeyUsage in org.forgerock.secrets
Methods in org.forgerock.secrets that return types with arguments of type KeyUsageModifier and TypeMethodDescriptionSecretBuilder.getAllowedKeyUsages()The allowed key usages of this key.Methods in org.forgerock.secrets with parameters of type KeyUsageModifier 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.Method parameters in org.forgerock.secrets with type arguments of type KeyUsageModifier 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
Methods in org.forgerock.secrets.keys that return KeyUsageModifier and TypeMethodDescriptionstatic KeyUsageReturns 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.Methods in org.forgerock.secrets.keys that return types with arguments of type KeyUsageModifier 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.Method parameters in org.forgerock.secrets.keys with type arguments of type KeyUsageModifier and TypeMethodDescriptionstatic boolean[]KeyUsage.toX509KeyUsageBits(Set<KeyUsage> usages) Converts a set of key usage values to an X.509 KeyUsage constraint bit string.