|
SunSPOT host API V5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.squawk.security.signing.KeyUtil
public class KeyUtil
The KeyUtil class provides functions to encode and decode ECPublicKeys in the X9.62 encoding.
| Constructor Summary | |
|---|---|
KeyUtil()
|
|
| Method Summary | |
|---|---|
static byte[] |
encodePublicECKeyInX962(ECPublicKey publicKey)
Encodes a public key using X9.62 |
static ECPublicKey |
getPublicECKeyFromX962Encoding(byte[] publicKeyBA)
Gets the ECPublicKey from the X962 encoding in a byte array |
static ECPublicKey |
getPublicECKeyFromX962Encoding(byte[] publicKeyBA,
int offset,
int length)
Gets the ECPublicKey from the X9.62 encoding in a byte array |
static ECPublicKey |
getPublicECKeyFromX962Encoding(String publicKeyS)
gets the ECPublicKey from the X962 encoding in a String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyUtil()
| Method Detail |
|---|
public static byte[] encodePublicECKeyInX962(ECPublicKey publicKey)
throws CryptoException
publicKey -
CryptoException
public static ECPublicKey getPublicECKeyFromX962Encoding(byte[] publicKeyBA,
int offset,
int length)
throws CryptoException
publicKeyBA - byte array containing the EC public key in X9.62
encoding.offset - Offset in the byte array where the key starts.length - Length of the encoded key.
CryptoException
public static ECPublicKey getPublicECKeyFromX962Encoding(byte[] publicKeyBA)
throws CryptoException
publicKeyBA - byte array containing EC public key in X962 encoding.
CryptoException
public static ECPublicKey getPublicECKeyFromX962Encoding(String publicKeyS)
throws CryptoException
publicKeyS - EC public key in X962 encoding. Must be a SEC160r key.
CryptoException
|
SunSPOT host API V5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||