| java.lang.Object sun.security.pkcs.PKCS7
PKCS7 | public class PKCS7 (Code) | | PKCS7 as defined in RSA Laboratories PKCS7 Technical Note. Profile
Supports only SignedData ContentInfo
type, where to the type of data signed is plain Data.
For signedData, crls, attributes and
PKCS#6 Extended Certificates are not supported.
version: 1.45 02/02/00 author: Benjamin Renaud |
Constructor Summary | |
public | PKCS7(InputStream in) Unmarshals a PKCS7 block from its encoded form, parsing the
encoded bytes from the InputStream. | public | PKCS7(DerInputStream derin) Unmarshals a PKCS7 block from its encoded form, parsing the
encoded bytes from the DerInputStream. | public | PKCS7(byte[] bytes) Unmarshals a PKCS7 block from its encoded form, parsing the
encoded bytes. | public | PKCS7(AlgorithmId[] digestAlgorithmIds, ContentInfo contentInfo, X509Certificate[] certificates, SignerInfo[] signerInfos) Construct an initialized PKCS7 block. |
PKCS7 | public PKCS7(DerInputStream derin) throws ParsingException(Code) | | Unmarshals a PKCS7 block from its encoded form, parsing the
encoded bytes from the DerInputStream.
Parameters: derin - a DerInputStream holding at least one PKCS7 block. exception: ParsingException - on parsing errors. |
PKCS7 | public PKCS7(byte[] bytes) throws ParsingException(Code) | | Unmarshals a PKCS7 block from its encoded form, parsing the
encoded bytes.
Parameters: bytes - the encoded bytes. exception: ParsingException - on parsing errors. |
PKCS7 | public PKCS7(AlgorithmId[] digestAlgorithmIds, ContentInfo contentInfo, X509Certificate[] certificates, SignerInfo[] signerInfos)(Code) | | Construct an initialized PKCS7 block.
Parameters: digestAlgorithmIds - the message digest algorithm identifiers. Parameters: contentInfo - the content information. Parameters: certificates - an array of X.509 certificates. Parameters: signerInfos - an array of signer information. |
encodeSignedData | public void encodeSignedData(OutputStream out) throws IOException(Code) | | Encodes the signed data to an output stream.
Parameters: out - the output stream to write the encoded data to. exception: IOException - on encoding errors. |
encodeSignedData | public void encodeSignedData(DerOutputStream out) throws IOException(Code) | | Encodes the signed data to a DerOutputStream.
Parameters: out - the DerOutputStream to write the encoded data to. exception: IOException - on encoding errors. |
getCRLs | public X509CRL[] getCRLs()(Code) | | Returns the X.509 crls listed in this PKCS7 block.
a clone of the array of X.509 crls or null if none are specified for the content type. |
getCertificate | public X509Certificate getCertificate(BigInteger serial, X500Name issuerName)(Code) | | Returns the X.509 certificate listed in this PKCS7 block
which has a matching serial number and Issuer name, or
null if one is not found.
Parameters: serial - the serial number of the certificate to retrieve. Parameters: issuerName - the Distinguished Name of the Issuer. |
getCertificates | public X509Certificate[] getCertificates()(Code) | | Returns the X.509 certificates listed in this PKCS7 block.
a clone of the array of X.509 certificates or null if none are specified for the content type. |
getContentInfo | public ContentInfo getContentInfo()(Code) | | Returns the content information specified in this PKCS7 block.
|
getDigestAlgorithmIds | public AlgorithmId[] getDigestAlgorithmIds()(Code) | | Returns the message digest algorithms specified in this PKCS7 block.
the array of Digest Algorithms or null if none are specifiedfor the content type. |
getSignerInfos | public SignerInfo[] getSignerInfos()(Code) | | Returns the signer's information specified in this PKCS7 block.
the array of Signer Infos or null if none are specifiedfor the content type. |
getVersion | public BigInteger getVersion()(Code) | | Returns the version number of this PKCS7 block.
the version or null if version is not specifiedfor the content type. |
isOldStyle | public boolean isOldStyle()(Code) | | Returns true if this is a JDK1.1.x-style PKCS#7 block, and false
otherwise.
|
toString | public String toString()(Code) | | Returns the PKCS7 block in a printable string form.
|
|
|