|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.jc.OPKey
An Global (Open) Platform key. A key is identified by a key set version number and its key identifier (or index) in that particular key set.
| Field Summary | |
static int |
DES
Key type: DES (ECB/CBC) (0x80) (GP 2.1.1) |
static int |
DES_CBC
Key type: DES CBC (0x82) (VOP 2.0.1') |
static int |
DES_ECB
Key type: DES ECB (0x81) (VOP 2.0.1') |
static int |
DSA_PRIV
Key type: DSA private key (0xB2) |
static int |
DSA_PUB
Key type: DSA public key (0xB1) |
static int |
ENC_GP
key encoding: GP 2.1.1 |
static int |
ENC_VOP
key encoding: VOP 2.0.1' |
static int |
RSA_CRT
Key type: RSA CRT key (0xA3) |
static int |
RSA_PRIV
Key type: RSA private key (0xA2) |
static int |
RSA_PUB
Key type: RSA public key (0xA1) |
| Constructor Summary | |
OPKey(int keySet,
int keyId,
int keyType,
byte[] material)
Create a key object. |
|
OPKey(OPKey key)
Create a key object. |
|
| Method Summary | |
int |
getByteLength()
The key length in bytes. |
int |
getKeyId()
The key identifier. |
int |
getKeySet()
The key set version. |
int |
getKeyType()
|
int |
getKeyType(int enc)
|
byte[] |
getMaterial()
The key material. |
boolean |
isDESKey()
Reports whether this key is a DES key or not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DES
public static final int DES_ECB
public static final int DES_CBC
public static final int RSA_PUB
public static final int RSA_PRIV
public static final int RSA_CRT
public static final int DSA_PUB
public static final int DSA_PRIV
public static final int ENC_VOP
public static final int ENC_GP
| Constructor Detail |
public OPKey(OPKey key)
key - OPKey object.
public OPKey(int keySet,
int keyId,
int keyType,
byte[] material)
keySet - the key set number. This number must in the range [0..255].keyId - the key identifier. This number must be in the range [1..255].keyType - the type of the key. Legal values must be in the range [0..255].| Method Detail |
public int getKeyType()
public int getKeyType(int enc)
public byte[] getMaterial()
public int getByteLength()
public int getKeySet()
public int getKeyId()
public boolean isDESKey()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||