Package org.mozilla.jss.pkcs7
Class SignedAndEnvelopedData
java.lang.Object
org.mozilla.jss.pkcs7.SignedAndEnvelopedData
- All Implemented Interfaces:
ASN1Value
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA 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 TypeMethodDescriptionvoidencode(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.voidencode(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 returnnullif the certificates field is not present. -
getCrls
Returns a SET of ANYs. May returnnullif the crls field is not present. -
getSignerInfos
Returns a SET of SignerInfo. -
getTag
Description copied from interface:ASN1ValueReturns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using its own base tag.- Specified by:
encodein interfaceASN1Value- Parameters:
ostream- Output stream.- Throws:
IOException- If an error occurred.
-
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using an implicit tag.- Specified by:
encodein interfaceASN1Value- Parameters:
implicitTag- Implicit tag.ostream- Output stream.- Throws:
IOException- If an error occurred.
-