|
SunSPOT host API V3.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
publicKeyS
- EC public key in X9.62 encoding. Must be a SEC160r
key.
CryptoException
public static ECPublicKey getPublicECKeyFromX962Encoding(byte[] publicKeyBA) throws CryptoException
publicKeyS
- EC public key in X962 encoding. Must be a SEC160r key.
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 V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |