public class PrivateKeyInfo extends ASN1Encodable
BER, DER| Constructor and Description |
|---|
PrivateKeyInfo(AlgorithmIdentifier algId,
DERObject privateKey) |
PrivateKeyInfo(AlgorithmIdentifier algId,
DERObject privateKey,
ASN1Set attributes) |
PrivateKeyInfo(ASN1Sequence seq) |
| Modifier and Type | Method and Description |
|---|---|
AlgorithmIdentifier |
getAlgorithmId() |
ASN1Set |
getAttributes() |
static PrivateKeyInfo |
getInstance(ASN1TaggedObject obj,
boolean explicit) |
static PrivateKeyInfo |
getInstance(Object obj) |
DERObject |
getPrivateKey() |
DERObject |
toASN1Object()
write out an RSA private key with its associated information
as described in PKCS8.
|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCodepublic PrivateKeyInfo(AlgorithmIdentifier algId, DERObject privateKey)
public PrivateKeyInfo(AlgorithmIdentifier algId, DERObject privateKey, ASN1Set attributes)
public PrivateKeyInfo(ASN1Sequence seq)
public static PrivateKeyInfo getInstance(ASN1TaggedObject obj, boolean explicit)
public static PrivateKeyInfo getInstance(Object obj)
public AlgorithmIdentifier getAlgorithmId()
public DERObject getPrivateKey()
public ASN1Set getAttributes()
public DERObject toASN1Object()
PrivateKeyInfo ::= SEQUENCE {
version Version,
privateKeyAlgorithm AlgorithmIdentifier {{PrivateKeyAlgorithms}},
privateKey PrivateKey,
attributes [0] IMPLICIT Attributes OPTIONAL
}
Version ::= INTEGER {v1(0)} (v1,...)
PrivateKey ::= OCTET STRING
Attributes ::= SET OF Attribute
toASN1Object in class ASN1EncodableCopyright © 2015. All rights reserved.