|
JSS 3.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.mozilla.jss.pkcs11.PK11Key
|
+--org.mozilla.jss.pkcs11.PK11PubKey
| Field Summary | |
protected KeyProxy |
keyProxy
|
| Fields inherited from interface java.security.PublicKey |
serialVersionUID |
| Constructor Summary | |
protected |
PK11PubKey(byte[] pointer)
|
| Method Summary | |
private static PK11PubKey |
DSAFromRaw(byte[] rawKey)
deprecated Use fromRawNative instead. |
static PK11PubKey |
fromRaw(PrivateKey.Type type,
byte[] rawKey)
Deprecated. This method works for RSA keys but not DSA keys. Use fromSPKI() instead. |
private static PK11PubKey |
fromRawNative(int type,
byte[] rawKey)
param type The PKCS #11 type of the key (CKK_). |
static PK11PubKey |
fromSPKI(byte[] spki)
Creates a PK11PubKey from a SubjectPublicKeyInfo. |
java.lang.String |
getAlgorithm()
|
byte[] |
getEncoded()
Returns a DER-encoded SubjectPublicKeyInfo representing this key. |
java.lang.String |
getFormat()
The name of the primary encoding format of this key. |
KeyType |
getKeyType()
|
private static PK11PubKey |
RSAFromRaw(byte[] rawKey)
deprecated Use fromRawNative instead. |
void |
verifyKeyIsOnToken(PK11Token token)
Make sure this key lives on the given token. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected KeyProxy keyProxy
| Constructor Detail |
protected PK11PubKey(byte[] pointer)
| Method Detail |
public void verifyKeyIsOnToken(PK11Token token)
throws NoSuchItemOnTokenException
NoSuchItemOnTokenExceptionpublic KeyType getKeyType()
public java.lang.String getAlgorithm()
getAlgorithm in interface java.security.KeygetAlgorithm in class PK11Key
public static PK11PubKey fromRaw(PrivateKey.Type type,
byte[] rawKey)
throws InvalidKeyFormatException
type - The type of private key to be decoded.rawKey - The bytes of the raw key.
InvalidKeyFormatException - If the raw key could not be
decoded.fromSPKI(byte[])
private static PK11PubKey fromRawNative(int type,
byte[] rawKey)
throws InvalidKeyFormatException
InvalidKeyFormatException
public static PK11PubKey fromSPKI(byte[] spki)
throws InvalidKeyFormatException
spki - The BER-encoded SubjectPublicKeyInfo.
InvalidKeyFormatException - If the SPKI could not be
decoded.private static PK11PubKey RSAFromRaw(byte[] rawKey)
private static PK11PubKey DSAFromRaw(byte[] rawKey)
public byte[] getEncoded()
getEncoded in interface java.security.KeygetEncoded in class PK11Keypublic java.lang.String getFormat()
getFormat in interface java.security.KeygetFormat in class PK11Key
|
JSS 3.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||