|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--jason.server.KeyStore
Title: Javacards As Secure Object Store
Description: KeyStore to be used inside a Javacard
Copyright: Copyright (c) 2002
Company: University of Twente
| Field Summary | |
byte[] |
freshnessCounters
|
private Key[] |
keys
|
private byte[] |
sessionAlgorithms
|
| Constructor Summary | |
KeyStore(short numberOfRoles)
Makes a new key store containing numberOfRoles keys. |
|
| Method Summary | |
Key |
getKey(byte role)
Returns the key corresponding to the role. |
boolean |
setKey(byte role,
Key key,
byte sessionAlgorithm)
Sets a new entry for a new role |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private Key[] keys
private byte[] sessionAlgorithms
public byte[] freshnessCounters
| Constructor Detail |
public KeyStore(short numberOfRoles)
numberOfRoles keys.
numberOfRoles - Size of the internal Key[]| Method Detail |
public Key getKey(byte role)
role.
role - Role byte
public boolean setKey(byte role,
Key key,
byte sessionAlgorithm)
role - The role value (constant of the generated interface)key - Some keysessionAlgorithm - A value from KeyBuiler.TYPE_...
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||