Uses of Class
org.bouncycastle.cms.CMSException
-
Packages that use CMSException Package Description org.bouncycastle.cert.crmf Basic support package for handling and creating CRMF (RFC 4211) certificate request messages.org.bouncycastle.cms A package for processing RFC 3852 Cryptographic Message Syntax (CMS) objects - also referred to as PKCS#7 (formerly RFC 2630, 3369).org.bouncycastle.cms.bc CMS operator implementations for doing message encryption, signing, digesting, and MACing operations using the BC lightweight API.org.bouncycastle.cms.jcajce CMS operator implementations for doing message encryption, signing, digesting, and MACing operations using the JCA and the JCE.org.bouncycastle.mime.smime org.bouncycastle.tsp.cms Classes for dealing Syntax for Binding Documents with Time-Stamps - RFC 5544. -
-
Uses of CMSException in org.bouncycastle.cert.crmf
Methods in org.bouncycastle.cert.crmf that throw CMSException Modifier and Type Method Description PKIArchiveControl
PKIArchiveControlBuilder. build(OutputEncryptor contentEncryptor)
Build the PKIArchiveControl using the passed in encryptor to encrypt its contents. -
Uses of CMSException in org.bouncycastle.cms
Subclasses of CMSException in org.bouncycastle.cms Modifier and Type Class Description class
CMSSignerDigestMismatchException
class
CMSVerifierCertificateNotValidException
Methods in org.bouncycastle.cms that throw CMSException Modifier and Type Method Description void
CMSSignedGenerator. addAttributeCertificate(X509AttributeCertificateHolder attrCert)
Add the attribute certificates in attrStore to the certificate set to be included with the generated SignedData message.void
CMSSignedGenerator. addAttributeCertificates(org.bouncycastle.util.Store attrStore)
Add the attribute certificates in attrStore to the certificate set to be included with the generated SignedData message.void
CMSSignedGenerator. addCertificate(X509CertificateHolder certificate)
Add a certificate to the certificate set to be included with the generated SignedData message.void
CMSSignedGenerator. addCertificates(org.bouncycastle.util.Store certStore)
Add the certificates in certStore to the certificate set to be included with the generated SignedData message.void
CMSSignedGenerator. addCRLs(org.bouncycastle.util.Store crlStore)
Add the CRLs in crlStore to the CRL set to be included with the generated SignedData message.byte[]
PasswordRecipient. calculateDerivedKey(int schemeID, org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm, int keySize)
protected abstract byte[]
PasswordRecipientInfoGenerator. calculateDerivedKey(int schemeID, org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm, int keySize)
CMSAuthenticatedData
CMSAuthenticatedDataGenerator. generate(CMSTypedData typedData, MacCalculator macCalculator)
Generate an authenticated data object from the passed in typedData and MacCalculator.CMSAuthenticatedData
CMSAuthenticatedDataGenerator. generate(CMSTypedData typedData, MacCalculator macCalculator, DigestCalculator digestCalculator)
Generate an authenticated data object from the passed in typedData and MacCalculator.CMSAuthEnvelopedData
CMSAuthEnvelopedDataGenerator. generate(CMSTypedData content, OutputAEADEncryptor contentEncryptor)
generate an auth-enveloped object that contains an CMS Enveloped Data object using the given provider.CMSCompressedData
CMSCompressedDataGenerator. generate(CMSTypedData content, OutputCompressor compressor)
generate an object that contains an CMS Compressed DataCMSEncryptedData
CMSEncryptedDataGenerator. generate(CMSTypedData content, OutputEncryptor contentEncryptor)
generate an encrypted object that contains an CMS Encrypted Data structure.CMSEnvelopedData
CMSEnvelopedDataGenerator. generate(CMSTypedData content, OutputEncryptor contentEncryptor)
generate an enveloped object that contains an CMS Enveloped Data object using the given provider.CMSSignedData
CMSSignedDataGenerator. generate(CMSTypedData content)
Generate a CMS Signed Data object carrying a detached CMS signature.CMSSignedData
CMSSignedDataGenerator. generate(CMSTypedData content, boolean encapsulate)
Generate a CMS Signed Data object which can be carrying a detached CMS signature, or have encapsulated data, depending on the value of the encapsulated parameter.org.bouncycastle.asn1.cms.RecipientInfo
KEKRecipientInfoGenerator. generate(GenericKey contentEncryptionKey)
org.bouncycastle.asn1.cms.RecipientInfo
KeyAgreeRecipientInfoGenerator. generate(GenericKey contentEncryptionKey)
org.bouncycastle.asn1.cms.RecipientInfo
KeyTransRecipientInfoGenerator. generate(GenericKey contentEncryptionKey)
org.bouncycastle.asn1.cms.RecipientInfo
PasswordRecipientInfoGenerator. generate(GenericKey contentEncryptionKey)
org.bouncycastle.asn1.cms.RecipientInfo
RecipientInfoGenerator. generate(GenericKey contentEncryptionKey)
org.bouncycastle.asn1.cms.SignerInfo
SignerInfoGenerator. generate(org.bouncycastle.asn1.ASN1ObjectIdentifier contentType)
SignerInformationStore
CMSSignedDataGenerator. generateCounterSigners(SignerInformation signer)
generate a set of one or more SignerInformation objects representing counter signatures on the passed in SignerInformation object.protected abstract byte[]
PasswordRecipientInfoGenerator. generateEncryptedBytes(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm, byte[] derivedKey, GenericKey contentEncryptionKey)
protected abstract org.bouncycastle.asn1.ASN1Sequence
KeyAgreeRecipientInfoGenerator. generateRecipientEncryptedKeys(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyAgreeAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncAlgorithm, GenericKey contentEncryptionKey)
org.bouncycastle.util.Store
CMSSignedDataParser. getAttributeCertificates()
Return any X.509 attribute certificate objects in this SignedData structure as a Store of X509AttributeCertificateHolder objects.org.bouncycastle.util.Store
CMSSignedDataParser. getCertificates()
Return any X.509 certificate objects in this SignedData structure as a Store of X509CertificateHolder objects.byte[]
CMSCompressedData. getContent(InputExpanderProvider expanderProvider)
Return the uncompressed content.CMSTypedStream
CMSCompressedDataParser. getContent(InputExpanderProvider expanderProvider)
Return a typed stream which will allow the reading of the compressed content in expanded form.byte[]
CMSEncryptedData. getContent(InputDecryptorProvider inputDecryptorProvider)
byte[]
RecipientInformation. getContent(Recipient recipient)
Return the decrypted/encapsulated content in the EnvelopedData after recovering the content encryption/MAC key using the passed in Recipient.CMSTypedStream
CMSEncryptedData. getContentStream(InputDecryptorProvider inputDecryptorProvider)
CMSTypedStream
RecipientInformation. getContentStream(Recipient recipient)
Return a CMSTypedStream representing the content in the EnvelopedData after recovering the content encryption/MAC key using the passed in Recipient.org.bouncycastle.util.Store
CMSSignedDataParser. getCRLs()
Return any X.509 CRL objects in this SignedData structure as a Store of X509CRLHolder objects.CMSProcessable
CMSDigestedData. getDigestedContent()
Return the digested contentInputStream
CMSProcessableFile. getInputStream()
org.bouncycastle.util.Store
CMSSignedDataParser. getOtherRevocationInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier otherRevocationInfoFormat)
Return any OtherRevocationInfo OtherRevInfo objects of the type indicated by otherRevocationInfoFormat in this SignedData structure.RecipientOperator
KEKRecipient. getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncAlg, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] encryptedContentKey)
protected RecipientOperator
KEKRecipientInformation. getRecipientOperator(Recipient recipient)
RecipientOperator
KeyAgreeRecipient. getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncAlg, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo senderPublicKey, org.bouncycastle.asn1.ASN1OctetString userKeyingMaterial, byte[] encryptedContentKey)
protected RecipientOperator
KeyAgreeRecipientInformation. getRecipientOperator(Recipient recipient)
RecipientOperator
KeyTransRecipient. getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncAlg, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] encryptedContentKey)
protected RecipientOperator
KeyTransRecipientInformation. getRecipientOperator(Recipient recipient)
RecipientOperator
PasswordRecipient. getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] derivedKey, byte[] encryptedEncryptedContentKey)
protected RecipientOperator
PasswordRecipientInformation. getRecipientOperator(Recipient recipient)
protected abstract RecipientOperator
RecipientInformation. getRecipientOperator(Recipient recipient)
SignerInformationStore
CMSSignedDataParser. getSignerInfos()
return the collection of signers that are associated with the signatures for the message.protected abstract byte[]
KeyAgreeRecipientInfoGenerator. getUserKeyingMaterial(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyAgreeAlgorithm)
OutputStream
CMSAuthenticatedDataStreamGenerator. open(OutputStream out, MacCalculator macCalculator)
generate an authenticated data structure with the encapsulated bytes marked as DATA.OutputStream
CMSAuthenticatedDataStreamGenerator. open(OutputStream out, MacCalculator macCalculator, DigestCalculator digestCalculator)
OutputStream
CMSAuthenticatedDataStreamGenerator. open(org.bouncycastle.asn1.ASN1ObjectIdentifier dataType, OutputStream out, MacCalculator macCalculator)
generate an authenticated data structure with the encapsulated bytes marked as type dataType.OutputStream
CMSAuthenticatedDataStreamGenerator. open(org.bouncycastle.asn1.ASN1ObjectIdentifier dataType, OutputStream out, MacCalculator macCalculator, DigestCalculator digestCalculator)
generate an authenticated data structure with the encapsulated bytes marked as type dataType.protected OutputStream
CMSEnvelopedDataStreamGenerator. open(OutputStream out, org.bouncycastle.asn1.ASN1EncodableVector recipientInfos, OutputEncryptor encryptor)
OutputStream
CMSEnvelopedDataStreamGenerator. open(OutputStream out, OutputEncryptor encryptor)
generate an enveloped object that contains an CMS Enveloped Data object using the given encryptor.OutputStream
CMSEnvelopedDataStreamGenerator. open(org.bouncycastle.asn1.ASN1ObjectIdentifier dataType, OutputStream out, OutputEncryptor encryptor)
generate an enveloped object that contains an CMS Enveloped Data object using the given encryptor and marking the data as being of the passed in type.static CMSSignedData
CMSSignedData. replaceCertificatesAndCRLs(CMSSignedData signedData, org.bouncycastle.util.Store certificates, org.bouncycastle.util.Store attrCerts, org.bouncycastle.util.Store revocations)
Replace the certificate and CRL information associated with this CMSSignedData object with the new one passed in.static OutputStream
CMSSignedDataParser. replaceCertificatesAndCRLs(InputStream original, org.bouncycastle.util.Store certs, org.bouncycastle.util.Store crls, org.bouncycastle.util.Store attrCerts, OutputStream out)
Replace the certificate and CRL information associated with this CMSSignedData object with the new one passed in.static OutputStream
CMSSignedDataParser. replaceSigners(InputStream original, SignerInformationStore signerInformationStore, OutputStream out)
Replace the signerinformation store associated with the passed in message contained in the stream original with the new one passed in.boolean
CMSDigestedData. verify(DigestCalculatorProvider calculatorProvider)
boolean
SignerInformation. verify(SignerInformationVerifier verifier)
Verify that the given verifier can successfully verify the signature on this SignerInformation object.boolean
CMSSignedData. verifySignatures(SignerInformationVerifierProvider verifierProvider)
Verify all the SignerInformation objects and their associated counter signatures attached to this CMS SignedData object.boolean
CMSSignedData. verifySignatures(SignerInformationVerifierProvider verifierProvider, boolean ignoreCounterSignatures)
Verify all the SignerInformation objects and optionally their associated counter signatures attached to this CMS SignedData object.void
CMSAbsentContent. write(OutputStream zOut)
void
CMSProcessable. write(OutputStream out)
generic routine to copy out the data we want processed - the OutputStream passed in will do the handling on it's own.void
CMSProcessableByteArray. write(OutputStream zOut)
void
CMSProcessableFile. write(OutputStream zOut)
void
PKCS7ProcessableObject. write(OutputStream cOut)
Constructors in org.bouncycastle.cms that throw CMSException Constructor Description CMSAuthenticatedData(byte[] authData)
CMSAuthenticatedData(byte[] authData, DigestCalculatorProvider digestCalculatorProvider)
CMSAuthenticatedData(InputStream authData)
CMSAuthenticatedData(InputStream authData, DigestCalculatorProvider digestCalculatorProvider)
CMSAuthenticatedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo)
CMSAuthenticatedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo, DigestCalculatorProvider digestCalculatorProvider)
CMSAuthenticatedDataParser(byte[] envelopedData)
CMSAuthenticatedDataParser(byte[] envelopedData, DigestCalculatorProvider digestCalculatorProvider)
CMSAuthenticatedDataParser(InputStream envelopedData)
CMSAuthenticatedDataParser(InputStream envelopedData, DigestCalculatorProvider digestCalculatorProvider)
CMSAuthEnvelopedData(byte[] authEnvData)
CMSAuthEnvelopedData(InputStream authEnvData)
CMSAuthEnvelopedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo)
CMSCompressedData(byte[] compressedData)
CMSCompressedData(InputStream compressedData)
CMSCompressedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo)
CMSCompressedDataParser(byte[] compressedData)
CMSCompressedDataParser(InputStream compressedData)
CMSContentInfoParser(InputStream data)
CMSDigestedData(byte[] compressedData)
CMSDigestedData(InputStream compressedData)
CMSDigestedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo)
CMSEnvelopedData(byte[] envelopedData)
CMSEnvelopedData(InputStream envelopedData)
CMSEnvelopedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo)
Construct a CMSEnvelopedData object from a content info object.CMSEnvelopedDataParser(byte[] envelopedData)
CMSEnvelopedDataParser(InputStream envelopedData)
CMSSignedData(byte[] sigBlock)
CMSSignedData(InputStream sigData)
base constructor - with encapsulated contentCMSSignedData(Map hashes, byte[] sigBlock)
Content with detached signature, digests precomputedCMSSignedData(Map hashes, org.bouncycastle.asn1.cms.ContentInfo sigData)
CMSSignedData(org.bouncycastle.asn1.cms.ContentInfo sigData)
CMSSignedData(CMSProcessable signedContent, byte[] sigBlock)
CMSSignedData(CMSProcessable signedContent, InputStream sigData)
base constructor - content with detached signature.CMSSignedData(CMSProcessable signedContent, org.bouncycastle.asn1.cms.ContentInfo sigData)
CMSSignedDataParser(DigestCalculatorProvider digestCalculatorProvider, byte[] sigBlock)
CMSSignedDataParser(DigestCalculatorProvider digestCalculatorProvider, InputStream sigData)
base constructor - with encapsulated contentCMSSignedDataParser(DigestCalculatorProvider digestCalculatorProvider, CMSTypedStream signedContent, byte[] sigBlock)
CMSSignedDataParser(DigestCalculatorProvider digestCalculatorProvider, CMSTypedStream signedContent, InputStream sigData)
base constructorOriginatorInfoGenerator(org.bouncycastle.util.Store origCerts)
OriginatorInfoGenerator(org.bouncycastle.util.Store origCerts, org.bouncycastle.util.Store origCRLs)
-
Uses of CMSException in org.bouncycastle.cms.bc
Methods in org.bouncycastle.cms.bc that throw CMSException Modifier and Type Method Description OutputEncryptor
BcCMSContentEncryptorBuilder. build()
byte[]
BcPasswordRecipient. calculateDerivedKey(int schemeID, org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm, int keySize)
protected byte[]
BcPasswordRecipientInfoGenerator. calculateDerivedKey(int schemeID, org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm, int keySize)
protected org.bouncycastle.crypto.CipherParameters
BcKEKRecipient. extractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] encryptedContentEncryptionKey)
protected org.bouncycastle.crypto.CipherParameters
BcKeyTransRecipient. extractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptedKeyAlgorithm, byte[] encryptedEncryptionKey)
protected org.bouncycastle.crypto.params.KeyParameter
BcPasswordRecipient. extractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] derivedKey, byte[] encryptedContentEncryptionKey)
byte[]
BcPasswordRecipientInfoGenerator. generateEncryptedBytes(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, byte[] derivedKey, GenericKey contentEncryptionKey)
RecipientOperator
BcKEKEnvelopedRecipient. getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] encryptedContentEncryptionKey)
RecipientOperator
BcPasswordEnvelopedRecipient. getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] derivedKey, byte[] encryptedContentEncryptionKey)
RecipientOperator
BcRSAKeyTransEnvelopedRecipient. getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] encryptedContentEncryptionKey)
-
Uses of CMSException in org.bouncycastle.cms.jcajce
Methods in org.bouncycastle.cms.jcajce that throw CMSException Modifier and Type Method Description OutputEncryptor
JceCMSContentEncryptorBuilder. build()
MacCalculator
JceCMSMacCalculatorBuilder. build()
byte[]
JcePasswordRecipient. calculateDerivedKey(int schemeID, org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm, int keySize)
protected byte[]
JcePasswordRecipientInfoGenerator. calculateDerivedKey(int schemeID, org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm, int keySize)
Cipher
EnvelopedDataHelper. createContentCipher(Key sKey, org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptionAlgID)
KeyFactory
EnvelopedDataHelper. createKeyFactory(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm)
KeyGenerator
EnvelopedDataHelper. createKeyGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm)
protected Key
JceKEKRecipient. extractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptedKeyAlgorithm, byte[] encryptedContentEncryptionKey)
protected Key
JceKeyAgreeRecipient. extractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo senderKey, org.bouncycastle.asn1.ASN1OctetString userKeyingMaterial, byte[] encryptedContentEncryptionKey)
protected Key
JceKeyTransRecipient. extractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptedKeyAlgorithm, byte[] encryptedEncryptionKey)
protected Key
JceKTSKeyTransRecipient. extractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptedKeyAlgorithm, byte[] encryptedEncryptionKey)
protected Key
JcePasswordRecipient. extractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] derivedKey, byte[] encryptedContentEncryptionKey)
byte[]
JcePasswordRecipientInfoGenerator. generateEncryptedBytes(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, byte[] derivedKey, GenericKey contentEncryptionKey)
org.bouncycastle.asn1.ASN1Sequence
JceKeyAgreeRecipientInfoGenerator. generateRecipientEncryptedKeys(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyAgreeAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, GenericKey contentEncryptionKey)
AlgorithmParameters
JceAlgorithmIdentifierConverter. getAlgorithmParameters(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier)
RecipientOperator
JceKEKAuthenticatedRecipient. getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentMacAlgorithm, byte[] encryptedContentEncryptionKey)
RecipientOperator
JceKEKEnvelopedRecipient. getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] encryptedContentEncryptionKey)
RecipientOperator
JceKeyAgreeAuthenticatedRecipient. getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentMacAlgorithm, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo senderPublicKey, org.bouncycastle.asn1.ASN1OctetString userKeyingMaterial, byte[] encryptedContentKey)
RecipientOperator
JceKeyAgreeEnvelopedRecipient. getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo senderPublicKey, org.bouncycastle.asn1.ASN1OctetString userKeyingMaterial, byte[] encryptedContentKey)
RecipientOperator
JceKeyTransAuthenticatedRecipient. getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentMacAlgorithm, byte[] encryptedContentEncryptionKey)
RecipientOperator
JceKeyTransAuthEnvelopedRecipient. getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] encryptedContentEncryptionKey)
RecipientOperator
JceKeyTransEnvelopedRecipient. getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] encryptedContentEncryptionKey)
RecipientOperator
JceKTSKeyTransAuthenticatedRecipient. getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentMacAlgorithm, byte[] encryptedContentEncryptionKey)
RecipientOperator
JceKTSKeyTransEnvelopedRecipient. getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] encryptedContentEncryptionKey)
RecipientOperator
JcePasswordAuthenticatedRecipient. getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentMacAlgorithm, byte[] derivedKey, byte[] encryptedContentEncryptionKey)
RecipientOperator
JcePasswordEnvelopedRecipient. getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] derivedKey, byte[] encryptedContentEncryptionKey)
protected byte[]
JceKeyAgreeRecipientInfoGenerator. getUserKeyingMaterial(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyAgreeAlg)
void
EnvelopedDataHelper. keySizeCheck(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyAlgorithm, Key key)
protected Key
JceKeyAgreeRecipient. unwrapSessionKey(org.bouncycastle.asn1.ASN1ObjectIdentifier wrapAlg, SecretKey agreedKey, org.bouncycastle.asn1.ASN1ObjectIdentifier contentEncryptionAlgorithm, byte[] encryptedContentEncryptionKey)
-
Uses of CMSException in org.bouncycastle.mime.smime
Methods in org.bouncycastle.mime.smime that throw CMSException Modifier and Type Method Description SMIMESignedWriter.Builder
SMIMESignedWriter.Builder. addCertificate(X509CertificateHolder certificate)
SMIMESignedWriter.Builder
SMIMESignedWriter.Builder. addCertificates(org.bouncycastle.util.Store certificates)
void
SMimeParserListener. envelopedData(MimeParserContext parserContext, Headers headers, OriginatorInformation originatorInformation, RecipientInformationStore recipients)
void
SMimeParserListener. signedData(MimeParserContext parserContext, Headers headers, org.bouncycastle.util.Store certificates, org.bouncycastle.util.Store CRLs, org.bouncycastle.util.Store attributeCertificates, SignerInformationStore signers)
-
Uses of CMSException in org.bouncycastle.tsp.cms
Methods in org.bouncycastle.tsp.cms that throw CMSException Modifier and Type Method Description CMSTimeStampedData
CMSTimeStampedData. addTimeStamp(TimeStampToken token)
Return a new timeStampedData object with the additional token attached.byte[]
CMSTimeStampedData. calculateNextHash(DigestCalculator calculator)
byte[]
CMSTimeStampedDataParser. calculateNextHash(DigestCalculator calculator)
CMSTimeStampedData
CMSTimeStampedDataGenerator. generate(TimeStampToken timeStamp)
CMSTimeStampedData
CMSTimeStampedDataGenerator. generate(TimeStampToken timeStamp, byte[] content)
CMSTimeStampedData
CMSTimeStampedDataGenerator. generate(TimeStampToken timeStamp, InputStream content)
TimeStampToken[]
CMSTimeStampedData. getTimeStampTokens()
TimeStampToken[]
CMSTimeStampedDataParser. getTimeStampTokens()
void
CMSTimeStampedData. initialiseMessageImprintDigestCalculator(DigestCalculator calculator)
Initialise the passed in calculator with the MetaData for this message, if it is required as part of the initial message imprint calculation.void
CMSTimeStampedDataParser. initialiseMessageImprintDigestCalculator(DigestCalculator calculator)
Initialise the passed in calculator with the MetaData for this message, if it is required as part of the initial message imprint calculation.void
CMSTimeStampedGenerator. initialiseMessageImprintDigestCalculator(DigestCalculator calculator)
Initialise the passed in calculator with the MetaData for this message, if it is required as part of the initial message imprint calculation.void
CMSTimeStampedData. validate(DigestCalculatorProvider calculatorProvider, byte[] dataDigest)
Validate the digests present in the TimeStampTokens contained in the CMSTimeStampedData.void
CMSTimeStampedData. validate(DigestCalculatorProvider calculatorProvider, byte[] dataDigest, TimeStampToken timeStampToken)
Validate the passed in timestamp token against the tokens and data present in the message.void
CMSTimeStampedDataParser. validate(DigestCalculatorProvider calculatorProvider, byte[] dataDigest)
Validate the digests present in the TimeStampTokens contained in the CMSTimeStampedData.void
CMSTimeStampedDataParser. validate(DigestCalculatorProvider calculatorProvider, byte[] dataDigest, TimeStampToken timeStampToken)
Validate the passed in timestamp token against the tokens and data present in the message.Constructors in org.bouncycastle.tsp.cms that throw CMSException Constructor Description CMSTimeStampedDataParser(byte[] baseData)
CMSTimeStampedDataParser(InputStream in)
-