|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectStringData
com.ibm.jc.tools.OPKeyData
This GetOpt elements parses a OPKey spec. It might either refer to a full APDU or only part of it. The data of the APDU can be specified either in hexadecimal form as as strings. You can mix both representations.
| Field Summary | |
static int |
KEYDEF
Parse key definitions (set/id/type/data) |
static int |
KEYREF
Parse key references (set/id) |
static int |
KEYREFDEF
Parse key definitions/references |
static java.lang.String |
SYNTAX
|
| Constructor Summary | |
OPKeyData(java.lang.String mnemo,
java.lang.String description,
java.lang.String defaultVal,
int mode)
|
|
| Method Summary | |
OPKey |
getKey()
|
int |
getKeyId()
|
byte[] |
getKeyMaterial()
|
int |
getKeySet()
|
int |
getKeyType()
|
java.lang.Object |
getValue()
|
int |
parse(java.util.Vector argv,
int pos)
|
static byte[] |
parseKey(java.lang.String s,
int[] set_id_type,
int mode)
Parse a string and return a byte array. |
void |
reset()
|
void |
setValue(java.lang.Object o)
|
static java.lang.String |
toString(OPKey key)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int KEYREFDEF
public static final int KEYREF
public static final int KEYDEF
public static final java.lang.String SYNTAX
| Constructor Detail |
public OPKeyData(java.lang.String mnemo,
java.lang.String description,
java.lang.String defaultVal,
int mode)
| Method Detail |
public static java.lang.String toString(OPKey key)
public static byte[] parseKey(java.lang.String s,
int[] set_id_type,
int mode)
s - the string containing either the key reference or defintionset_id_type - either an array of length 2 or 3. If length 2 then
key references are parsed. Index 0 receives key set and
index 1 the key id. If length is 3 then parse key definitions.
Indices 0 and 1 are as described above. Index 2 receives the
key type.
public void reset()
public java.lang.Object getValue()
public void setValue(java.lang.Object o)
public int getKeySet()
public int getKeyId()
public int getKeyType()
public byte[] getKeyMaterial()
public OPKey getKey()
public int parse(java.util.Vector argv,
int pos)
throws GetOptException
GetOptException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||