org.mozilla.jss.pkix.primitive
Class PrivateKeyInfo
java.lang.Object
org.mozilla.jss.pkix.primitive.PrivateKeyInfo
- ASN1Value, java.security.PrivateKey
public class PrivateKeyInfo
extends java.lang.Object
implements ASN1Value, java.security.PrivateKey
PrivateKeyInfo
public PrivateKeyInfo(INTEGER version,
AlgorithmIdentifier privateKeyAlgorithm,
OCTET_STRING privateKey,
SET attributes)
Create a PrivateKeyInfo from its components.
attributes
- May be null if there are no attributes, in which
case the attributes field will be omitted from the DER encoding.
Each element must be a org.mozilla.jss.pkix.primitive.Attribute.
encode
public void encode(OutputStream ostream)
throws IOException
- encode in interface ASN1Value
encode
public void encode(Tag implicitTag,
OutputStream ostream)
throws IOException
- encode in interface ASN1Value
getAlgorithm
public String getAlgorithm()
getAttributes
public SET getAttributes()
May return null if no attributes are present.
getEncoded
public byte[] getEncoded()
getFormat
public String getFormat()
getVersion
public INTEGER getVersion()