T
- the type of secret that this purpose requires.public final class Purpose<T extends Secret> extends Object
Modifier and Type | Field and Description |
---|---|
static Purpose<DataDecryptionKey> |
DATA_DECRYPTION
Indicates a key intended for decrypting data.
|
static Purpose<DataEncryptionKey> |
DATA_ENCRYPTION
Indicates a key intended for encrypting data.
|
static Purpose<KeyAgreementKey> |
KEY_AGREEMENT
Indicates a key intended for an interactive key agreement protocol, such as Diffie-Hellman (DH) or the
elliptic curve equivalent (ECDH).
|
static Purpose<KeyDecryptionKey> |
KEY_DECRYPTION
Indicates a key intended for decrypting ("unwrapping") other keys.
|
static Purpose<KeyEncryptionKey> |
KEY_ENCRYPTION
Indicates a key intended for encrypting ("wrapping") other keys.
|
static Pattern |
LABEL_PATTERN
The regular expression to use when validating purpose labels.
|
static Purpose<GenericSecret> |
PASSWORD
Indicates a secret intended to be used as a password for authentication to some service.
|
static Purpose<SigningKey> |
SIGN
Indicates a key intended for creating digital signatures or message authentication codes (MACs).
|
static Purpose<VerificationKey> |
VERIFY
Indicates a key intended for verifying digital signatures or message authentication codes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
String |
getLabel()
Returns a symbolic label for this purpose that can be used in routing requests for secrets.
|
Class<T> |
getSecretType()
Returns the type of secrets that this purpose requires.
|
int |
hashCode() |
static <T extends Secret> |
purpose(String label,
Class<T> type)
Constructs a purpose object.
|
String |
toString() |
public static final Pattern LABEL_PATTERN
public static final Purpose<SigningKey> SIGN
public static final Purpose<VerificationKey> VERIFY
public static final Purpose<DataEncryptionKey> DATA_ENCRYPTION
public static final Purpose<DataDecryptionKey> DATA_DECRYPTION
public static final Purpose<KeyEncryptionKey> KEY_ENCRYPTION
public static final Purpose<KeyDecryptionKey> KEY_DECRYPTION
public static final Purpose<KeyAgreementKey> KEY_AGREEMENT
public static final Purpose<GenericSecret> PASSWORD
public static <T extends Secret> Purpose<T> purpose(String label, Class<T> type)
T
- the type of secret.label
- the symbolic label to identify this purpose. Must consist only of alphanumeric and dot characters.type
- the type of secret that this purpose requires.public Class<T> getSecretType()
public String getLabel()
Copyright © 2010-2018, ForgeRock All Rights Reserved.