|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.fhg.igd.crypto.RawKey
public class RawKey
Provides the creation of raw keys from arbitrary byte arrays, for instance to initialize a message authentification code algorithm.
| Field Summary | |
|---|---|
private byte[] |
rawKey_
Stores the key in its raw format. |
| Fields inherited from interface java.security.Key |
|---|
serialVersionUID |
| Constructor Summary | |
|---|---|
RawKey(byte[] rawKey)
Creates an instance with the given raw key. |
|
| Method Summary | |
|---|---|
String |
getAlgorithm()
Returns the standard algorithm name for this key. |
byte[] |
getEncoded()
Returns the key in its primary encoding format. |
String |
getFormat()
Returns the name of the primary encoding format of this key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private byte[] rawKey_
| Constructor Detail |
|---|
public RawKey(byte[] rawKey)
rawKey - The key in its raw format.
NullPointerException, - if rawKey
is null.| Method Detail |
|---|
public String getAlgorithm()
getAlgorithm in interface Keypublic byte[] getEncoded()
getEncoded in interface Keypublic String getFormat()
getFormat in interface Key
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||