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.
|
Modifier and Type | Method and Description |
---|---|
Set<KeyUsage> |
SecretBuilder.getAllowedKeyUsages()
The allowed key usages of this key.
|
Modifier and Type | Method and Description |
---|---|
SecretBuilder |
SecretBuilder.keyUsages(Set<KeyUsage> keyUsages)
Sets the allowed key usages for this key.
|
Modifier and Type | Method and 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.
|
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
static boolean[] |
KeyUsage.toX509KeyUsageBits(Set<KeyUsage> usages)
Converts a set of key usage values to an X.509 KeyUsage constraint bit string.
|
Copyright © 2010-2018, ForgeRock All Rights Reserved.