Uses of Class
org.forgerock.secrets.keys.KeyUsage
-
Packages that use KeyUsage Package Description org.forgerock.secrets Provides a unified API for accessing secrets of various kinds.org.forgerock.secrets.keys Contains cryptographic key related API objects. -
-
Uses of KeyUsage in org.forgerock.secrets
Methods in org.forgerock.secrets that return types with arguments of type KeyUsage Modifier and Type Method Description Set<KeyUsage>
SecretBuilder. getAllowedKeyUsages()
The allowed key usages of this key.Methods in org.forgerock.secrets with parameters of type KeyUsage Modifier and Type Method Description static 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 KeyUsage Modifier and Type Method Description static SecretConstraint<CryptoKey>
SecretConstraint. allowedKeyUsages(Set<KeyUsage> keyUsages)
Enforces that the key satisfies at least one of the given key usage constraints.SecretBuilder
SecretBuilder. keyUsages(Set<KeyUsage> keyUsages)
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 KeyUsage Modifier and Type Method Description static KeyUsage
KeyUsage. valueOf(String name)
Returns the enum constant of this type with the specified name.static KeyUsage[]
KeyUsage. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.forgerock.secrets.keys that return types with arguments of type KeyUsage Modifier and Type Method Description static EnumSet<KeyUsage>
KeyUsage. forKeyType(Class<? extends CryptoKey> keyType)
Returns the set of all key usages that are applicable to the given key type.static Optional<KeyUsage>
KeyUsage. forWebCryptoName(String keyOperation)
Converts a Web Crypto/JWK key operation name into the equivalent key usage constant.static EnumSet<KeyUsage>
KeyUsage. fromCertificate(Certificate certificate)
Determines what usages are allowed for a public key based on the associated certificate.static EnumSet<KeyUsage>
KeyUsage. fromX509KeyUsageBits(boolean[] bits)
Converts an X.509 KeyUsage bit vector into a corresponding set of usage values.Set<KeyUsage>
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 KeyUsage Modifier and Type Method Description static boolean[]
KeyUsage. toX509KeyUsageBits(Set<KeyUsage> usages)
Converts a set of key usage values to an X.509 KeyUsage constraint bit string.
-