Package netscape.security.pkcs
Class PKCS12KeyInfo
- java.lang.Object
-
- netscape.security.pkcs.PKCS12KeyInfo
-
public class PKCS12KeyInfo extends java.lang.Object
This object is used for carrying key info around. It does not handle raw key material (but it used to). FIXME: A clear refactoring opportunity exists. The 'privateKey' field (and associated constructor) is only used during export, and the 'epkiBytes' field (and associated constructor) is only used during import. Therefore this should be two different types.
-
-
Constructor Summary
Constructors Constructor Description PKCS12KeyInfo()
PKCS12KeyInfo(byte[] epkiBytes)
Construct with a (serialised) EncrypedPrivateKeyInfo.PKCS12KeyInfo(org.mozilla.jss.crypto.PrivateKey k)
Construct with a PrivateKey.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getEncryptedPrivateKeyInfoBytes()
java.lang.String
getFriendlyName()
byte[]
getID()
org.mozilla.jss.crypto.PrivateKey
getPrivateKey()
void
setFriendlyName(java.lang.String friendlyName)
void
setID(byte[] id)
-
-
-
Constructor Detail
-
PKCS12KeyInfo
public PKCS12KeyInfo()
-
PKCS12KeyInfo
public PKCS12KeyInfo(org.mozilla.jss.crypto.PrivateKey k)
Construct with a PrivateKey. This constructor is used for moving the PrivateKey handle around during export.
-
PKCS12KeyInfo
public PKCS12KeyInfo(byte[] epkiBytes)
Construct with a (serialised) EncrypedPrivateKeyInfo. This constructor is used for moving the EPKI data around during import.
-
-
Method Detail
-
getPrivateKey
public org.mozilla.jss.crypto.PrivateKey getPrivateKey()
-
getEncryptedPrivateKeyInfoBytes
public byte[] getEncryptedPrivateKeyInfoBytes()
-
getID
public byte[] getID()
-
setID
public void setID(byte[] id)
-
getFriendlyName
public java.lang.String getFriendlyName()
-
setFriendlyName
public void setFriendlyName(java.lang.String friendlyName)
-
-