public class ExtKeyUsage extends KeyUsage
Each value repesents bytes 5-6 of the Keyblok Header.
This class defines proprietary specific key usages. In the great majority of
cases, the ones defined by TR-31 KeyUsage
will be sufficient. There
are no strong reasons for separating e.g. KEK keys to ZMK and TMK, or PINENC
keys to ZPK and TPK. KEK and PINENC should be enough.
However, when it is necessary to use, for example: private/public RSA keys or HMAC keys, the only option is to use the proprietary key usages.
The proprietary key usages for ExtKeyUsage
are optional and can be
defined in your resources at . A file
with the same name in the jPOS test resources can be used as an example.
Modifier and Type | Field and Description |
---|---|
static KeyUsage |
DEK
DEK - Data Encryption Key.
|
static KeyUsage |
HMACSHA1
HMAC key using SHA-1.
|
static KeyUsage |
HMACSHA224
HMAC key using SHA-224.
|
static KeyUsage |
HMACSHA256
HMAC key using SHA-256.
|
static KeyUsage |
HMACSHA384
HMAC key using SHA-384.
|
static KeyUsage |
HMACSHA512
HMAC key using SHA-512.
|
static KeyUsage |
RSAPK
RSA Public Key.
|
static KeyUsage |
RSASK
RSA Private Key for signing or key management.
|
static KeyUsage |
RSASKICC
RSA Private Key for ICC personalization.
|
static KeyUsage |
RSASKPIN
RSA Private Key for PIN translation.
|
static KeyUsage |
RSASKTLS
RSA Private Key for TLS.
|
static KeyUsage |
TEK
TEK - Terminal Encryption Key.
|
static KeyUsage |
TMK
TMK - Terminal Master Key.
|
static KeyUsage |
TPK
TPK - Terminal PIN Encryption Key.
|
static KeyUsage |
ZEK
ZEK - Zone Encryption Key.
|
static KeyUsage |
ZMK
ZMK - Zone Master Key.
|
static KeyUsage |
ZPK
ZPK - Zone PIN Encryption Key.
|
Modifier | Constructor and Description |
---|---|
protected |
ExtKeyUsage(java.lang.String code,
java.lang.String name)
Internal constructor.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,KeyUsage> |
entries() |
static KeyUsage |
valueOfByCode(java.lang.String code)
Returns the enum constant of this type with the specified
code . |
public static final KeyUsage DEK
public static final KeyUsage ZEK
public static final KeyUsage TEK
public static final KeyUsage RSAPK
public static final KeyUsage RSASK
public static final KeyUsage RSASKICC
public static final KeyUsage RSASKPIN
public static final KeyUsage RSASKTLS
public static final KeyUsage TMK
public static final KeyUsage ZMK
public static final KeyUsage HMACSHA1
public static final KeyUsage HMACSHA224
public static final KeyUsage HMACSHA256
public static final KeyUsage HMACSHA384
public static final KeyUsage HMACSHA512
public static final KeyUsage TPK
public static final KeyUsage ZPK
protected ExtKeyUsage(java.lang.String code, java.lang.String name)
The constructor is protected to guarantee only one instance of the key
usage in the entire JVM. This makes it possible to use the operator
==
or !=
as it does for enums.
code
- the key usage codename
- the usage namepublic static KeyUsage valueOfByCode(java.lang.String code)
code
.code
- null
if unknown.public static java.util.Map<java.lang.String,KeyUsage> entries()