org.mozilla.jss.pkix.primitive
public class PrivateKeyInfo extends Object implements ASN1Value, PrivateKey
Nested Class Summary | |
---|---|
static class | PrivateKeyInfo.Template
A template class for decoding PrivateKeyInfos from BER. |
Constructor Summary | |
---|---|
PrivateKeyInfo(INTEGER version, AlgorithmIdentifier privateKeyAlgorithm, OCTET_STRING privateKey, SET attributes)
Create a PrivateKeyInfo from its components.
|
Method Summary | |
---|---|
void | encode(OutputStream ostream) |
void | encode(Tag implicitTag, OutputStream ostream) |
String | getAlgorithm() |
SET | getAttributes()
May return null if no attributes are present. |
byte[] | getEncoded() |
String | getFormat() |
OCTET_STRING | getPrivateKey() |
AlgorithmIdentifier | getPrivateKeyAlgorithm() |
Tag | getTag() |
static PrivateKeyInfo.Template | getTemplate() |
INTEGER | getVersion() |
Parameters: 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.