APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.crypto.provider

pack-priv final Class PrivateKeyInfo

extends Object
Class Inheritance
Imports
java.math.*, java.io.*, java.util.Arrays, sun.security.x509.AlgorithmId, sun.security.util.*

This class implements the PrivateKeyInfo type, which is defined in PKCS #8 as follows:
PrivateKeyInfo ::=  SEQUENCE {
    version   INTEGER,
    privateKeyAlgorithm   AlgorithmIdentifier,
    privateKey   OCTET STRING,
    attributes   [0] IMPLICIT Attributes OPTIONAL }
Author
Jan Luehe

Field Summary

Modifier and TypeField and Description
private final AlgorithmId
private final byte[]
private static final BigInteger

Constructor Summary

AccessConstructor and Description
pack-priv
PrivateKeyInfo(byte[] encoded)

Constructs a PKCS#8 PrivateKeyInfo from its ASN.1 encoding.

Method Summary

Modifier and TypeMethod and Description
public void
pack-priv AlgorithmId
getAlgorithm()

Returns the private-key algorithm.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algidback to summary
private final AlgorithmId algid
privkeyback to summary
private final byte[] privkey
VERSIONback to summary
private static final BigInteger VERSION

Constructor Detail

PrivateKeyInfoback to summary
pack-priv PrivateKeyInfo(byte[] encoded) throws IOException

Constructs a PKCS#8 PrivateKeyInfo from its ASN.1 encoding.

Method Detail

clearback to summary
public void clear()
getAlgorithmback to summary
pack-priv AlgorithmId getAlgorithm()

Returns the private-key algorithm.