Package org.mozilla.jss.pkix.cms
Class SignedAndEnvelopedData
java.lang.Object
org.mozilla.jss.pkix.cms.SignedAndEnvelopedData
- All Implemented Interfaces:
ASN1Value
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A Template class for decoding BER-encoded SignedAndEnvelopedData items. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSignedAndEnvelopedData
(INTEGER version, SET recipientInfos, SET digestAlgorithms, EncryptedContentInfo encryptedContentInfo, SET certificates, SET crls, SET signerInfos) -
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.void
encode
(Tag implicitTag, OutputStream ostream) Write this value's DER encoding to an output stream using an implicit tag.Returns a SET of ANYs.getCrls()
Returns a SET of ANYs.Returns a SET of AlgorithmIdentifier.Returns the encrypted content.Returns a SET of RecipientInfo.Returns a SET of SignerInfo.getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.Returns the version number.
-
Field Details
-
version
-
recipientInfos
-
digestAlgorithms
-
encryptedContentInfo
-
certificates
-
crls
-
signerInfos
-
sequence
-
TAG
-
-
Constructor Details
-
SignedAndEnvelopedData
-
-
Method Details
-
getVersion
Returns the version number. The current version is 1. -
getRecipientInfos
Returns a SET of RecipientInfo. -
getDigestAlgorithms
Returns a SET of AlgorithmIdentifier. -
getEncryptedContentInfo
Returns the encrypted content. -
getCertificates
Returns a SET of ANYs. May returnnull
if the certificates field is not present. -
getCrls
Returns a SET of ANYs. May returnnull
if the crls field is not present. -
getSignerInfos
Returns a SET of SignerInfo. -
getTag
Description copied from interface:ASN1Value
Returns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using its own base tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using an implicit tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
implicitTag
- Implicit tag.ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-