java.lang.Object | |
↳ | sun.security.pkcs.PKCS7 |
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Unmarshals a PKCS7 block from its encoded form, parsing the
encoded bytes from the InputStream.
| |||||||||||
Unmarshals a PKCS7 block from its encoded form, parsing the
encoded bytes from the DerInputStream.
| |||||||||||
Unmarshals a PKCS7 block from its encoded form, parsing the
encoded bytes.
| |||||||||||
Construct an initialized PKCS7 block.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Encodes the signed data to an output stream.
| |||||||||||
Encodes the signed data to a DerOutputStream.
| |||||||||||
Returns the X.509 crls listed in this PKCS7 block.
| |||||||||||
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.
| |||||||||||
Returns the X.509 certificates listed in this PKCS7 block.
| |||||||||||
Returns the content information specified in this PKCS7 block.
| |||||||||||
Returns the message digest algorithms specified in this PKCS7 block.
| |||||||||||
Returns the signer's information specified in this PKCS7 block.
| |||||||||||
Returns the version number of this PKCS7 block.
| |||||||||||
Returns true if this is a JDK1.1.x-style PKCS#7 block, and false
otherwise.
| |||||||||||
Returns the PKCS7 block in a printable string form.
| |||||||||||
Returns all signerInfos which self-verify.
| |||||||||||
Returns all signerInfos which self-verify.
| |||||||||||
This verifies a given SignerInfo.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Unmarshals a PKCS7 block from its encoded form, parsing the encoded bytes from the InputStream.
in | an input stream holding at least one PKCS7 block. |
---|
ParsingException | on parsing errors. |
---|---|
IOException | on other errors. |
Unmarshals a PKCS7 block from its encoded form, parsing the encoded bytes from the DerInputStream.
derin | a DerInputStream holding at least one PKCS7 block. |
---|
ParsingException | on parsing errors. |
---|
Unmarshals a PKCS7 block from its encoded form, parsing the encoded bytes.
bytes | the encoded bytes. |
---|
ParsingException | on parsing errors. |
---|
Construct an initialized PKCS7 block.
digestAlgorithmIds | the message digest algorithm identifiers. |
---|---|
contentInfo | the content information. |
certificates | an array of X.509 certificates. |
signerInfos | an array of signer information. |
Encodes the signed data to an output stream.
out | the output stream to write the encoded data to. |
---|
IOException | on encoding errors. |
---|
Encodes the signed data to a DerOutputStream.
out | the DerOutputStream to write the encoded data to. |
---|
IOException | on encoding errors. |
---|
Returns the X.509 crls listed in this PKCS7 block.
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.
serial | the serial number of the certificate to retrieve. |
---|---|
issuerName | the Distinguished Name of the Issuer. |
Returns the X.509 certificates listed in this PKCS7 block.
Returns the message digest algorithms specified in this PKCS7 block.
Returns the signer's information specified in this PKCS7 block.
Returns the version number of this PKCS7 block.
Returns true if this is a JDK1.1.x-style PKCS#7 block, and false otherwise.
Returns the PKCS7 block in a printable string form.
Returns all signerInfos which self-verify.
NoSuchAlgorithmException | on unrecognized algorithms. |
---|---|
SignatureException | on signature handling errors. |
Returns all signerInfos which self-verify.
bytes | the DER encoded content information. |
---|
NoSuchAlgorithmException | on unrecognized algorithms. |
---|---|
SignatureException | on signature handling errors. |
This verifies a given SignerInfo.
info | the signer information. |
---|---|
bytes | the DER encoded content information. |
NoSuchAlgorithmException | on unrecognized algorithms. |
---|---|
SignatureException | on signature handling errors. |