|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.crypto.spec.SecretKeySpec
public class SecretKeySpec
| Constructor Summary | |
|---|---|
SecretKeySpec(byte[] key,
int offset,
int len,
String algorithm)
|
|
SecretKeySpec(byte[] key,
String algorithm)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. |
String |
getAlgorithm()
Returns the name of the algorithm that this key will work with. |
byte[] |
getEncoded()
Returns the encoded form of the receiver. |
String |
getFormat()
Returns the name of the format used to encode the key, or null if it can not be encoded. |
int |
hashCode()
Returns an integer hash code for the receiver. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecretKeySpec(byte[] key,
String algorithm)
public SecretKeySpec(byte[] key,
int offset,
int len,
String algorithm)
| Method Detail |
|---|
public String getAlgorithm()
Key
getAlgorithm in interface Keypublic String getFormat()
Key
getFormat in interface Keypublic byte[] getEncoded()
Key
getEncoded in interface Keypublic int hashCode()
Objecttrue when passed to .equals must
answer the same value for this method.
hashCode in class ObjectObject.equals(java.lang.Object)public boolean equals(Object obj)
Object
equals in class Objectobj - Object the object to compare with this object.
true if the object is the same as this
object false if it is different from this object.Object.hashCode()
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||