|
aerogear-crypto 0.1.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.aerogear.crypto.keys.PrivateKey
public class PrivateKey
Represents the private key used for symmetric encryption
| Field Summary | |
|---|---|
private byte[] |
secretKey
|
| Constructor Summary | |
|---|---|
PrivateKey()
Initialize and generate the private key with the default key size |
|
PrivateKey(byte[] keyBytes)
Initializes the private key with the provided bytes |
|
PrivateKey(String secretKey)
Initializes the private key with the provided string |
|
PrivateKey(String secretKey,
Encoder encoder)
Initializes the private key with the provided string and encoder |
|
| Method Summary | |
|---|---|
byte[] |
toBytes()
Retrieve the private key |
String |
toString()
Retrieve the hexadecimal representation of the key |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private byte[] secretKey
| Constructor Detail |
|---|
public PrivateKey()
public PrivateKey(byte[] keyBytes)
keyBytes - provided keypublic PrivateKey(String secretKey)
secretKey - provided key
public PrivateKey(String secretKey,
Encoder encoder)
secretKey - provided keyencoder - provided encoder| Method Detail |
|---|
public byte[] toBytes()
public String toString()
toString in class Object
|
aerogear-crypto 0.1.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||