Class ExtKeyUsage
- All Implemented Interfaces:
Serializable
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 "META-INF/org/jpos/security/proprietary-hsm.properties". A file
with the same name in the jPOS test resources can be used as an example.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final KeyUsageDEK - Data Encryption Key.static final KeyUsageHMAC key using SHA-1.static final KeyUsageHMAC key using SHA-224.static final KeyUsageHMAC key using SHA-256.static final KeyUsageHMAC key using SHA-384.static final KeyUsageHMAC key using SHA-512.static final KeyUsageRSA Public Key.static final KeyUsageRSA Private Key for signing or key management.static final KeyUsageRSA Private Key for ICC personalization.static final KeyUsageRSA Private Key for PIN translation.static final KeyUsageRSA Private Key for TLS.static final KeyUsageTEK - Terminal Encryption Key.static final KeyUsageTMK - Terminal Master Key.static final KeyUsageTPK - Terminal PIN Encryption Key.static final KeyUsageZEK - Zone Encryption Key.static final KeyUsageZMK - Zone Master Key.static final KeyUsageZPK - Zone PIN Encryption Key. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExtKeyUsage(String code, String name) Internal constructor. -
Method Summary
-
Field Details
-
DEK
DEK - Data Encryption Key.- API Note:
- It is proprietary specific version of
KeyUsage.ENC
-
ZEK
ZEK - Zone Encryption Key.- API Note:
- It is proprietary specific version of
KeyUsage.ENC
-
TEK
TEK - Terminal Encryption Key.- API Note:
- It is proprietary specific version of
KeyUsage.ENC
-
RSAPK
-
RSASK
-
RSASKICC
-
RSASKPIN
-
RSASKTLS
-
TMK
TMK - Terminal Master Key.- API Note:
- It is proprietary specific version of
KeyUsage.KEK
-
ZMK
ZMK - Zone Master Key.- API Note:
- It is proprietary specific version of
KeyUsage.KEK
-
HMACSHA1
-
HMACSHA224
HMAC key using SHA-224.- API Note:
- It is proprietary specific, there is no equivalent in TR-31.
-
HMACSHA256
HMAC key using SHA-256.- API Note:
- It is proprietary specific, there is no equivalent in TR-31.
-
HMACSHA384
HMAC key using SHA-384.- API Note:
- It is proprietary specific, there is no equivalent in TR-31.
-
HMACSHA512
HMAC key using SHA-512.- API Note:
- It is proprietary specific, there is no equivalent in TR-31.
-
TPK
TPK - Terminal PIN Encryption Key.- API Note:
- It is proprietary specific version of
KeyUsage.PINENC
-
ZPK
ZPK - Zone PIN Encryption Key.- API Note:
- It is proprietary specific version of
KeyUsage.PINENC
-
-
Constructor Details
-
ExtKeyUsage
Internal constructor.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.- Parameters:
code- the key usage codename- the usage name
-
-
Method Details
-
valueOfByCode
Returns the enum constant of this type with the specifiedcode.- Parameters:
code-- Returns:
- the enum constant with the specified processing code or
nullif unknown.
-
entries
-