com.mindbright.jce.crypto.spec
Class SecretKeySpec
java.lang.Object
com.mindbright.jce.crypto.spec.SecretKeySpec
- All Implemented Interfaces:
- Key, KeySpec, SecretKey, java.io.Serializable
- public class SecretKeySpec
- extends java.lang.Object
- implements KeySpec, SecretKey
- See Also:
- Serialized Form
Constructor Summary |
SecretKeySpec(byte[] key,
int offset,
int len,
java.lang.String algorithm)
|
SecretKeySpec(byte[] key,
java.lang.String algorithm)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
SecretKeySpec
public SecretKeySpec(byte[] key,
int offset,
int len,
java.lang.String algorithm)
SecretKeySpec
public SecretKeySpec(byte[] key,
java.lang.String algorithm)
equals
public boolean equals(java.lang.Object obj)
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithm
in interface Key
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interface Key
getFormat
public java.lang.String getFormat()
- Specified by:
getFormat
in interface Key
hashCode
public int hashCode()