|
AXL Software | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ObjectTempSecretKey
Class to hold temporary key information with no particular type associated with it.
| Field Summary |
| Fields inherited from interface Key |
serialVersionUID |
| Constructor Summary | |
TempSecretKey(byte[] key)
Constructor for a byte array. |
|
TempSecretKey(char[] key)
Constructor for a character array. |
|
| Method Summary | |
void |
clear()
Clear the key material. |
boolean |
equals(Object o)
See if this key is equal to another key. |
String |
getAlgorithm()
Get the algorithm - always returns "None". |
byte[] |
getEncoded()
No encoding, gets the raw value. |
String |
getFormat()
Get format, |
int |
hashCode()
Return the hash code for this key. |
String |
toString()
String representation of the key. |
| Methods inherited from class Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TempSecretKey(byte[] key)
key - Key material.public TempSecretKey(char[] key)
key - Key material.| Method Detail |
public void clear()
The key material will be destroyed by the finalizer, if it runs. This explicitly clears the key.
public boolean equals(Object o)
o - Object to compare.public String getAlgorithm()
getAlgorithm in interface Keypublic byte[] getEncoded()
getEncoded in interface Keypublic String getFormat()
getFormat in interface Keypublic int hashCode()
s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]
public String toString()
|
AXL Software | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||