Top Description Inners Constructors Methods
org.bouncycastle.cms

public Class CMSPatchKit

extends Object
Class Inheritance
Imports
java.io.IOException, org.bouncycastle.asn1.ASN1Encoding, org.bouncycastle.asn1.cms.SignerInfo, org.bouncycastle.asn1.x509.AlgorithmIdentifier

Toolkit methods for dealing with common errors in CMS classes.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static SignerInformation
createNonDERSignerInfo(SignerInformation
the source SignerInformation
original
)

Create a SignerInformation based on original which uses definite-length rather than DER encoding for verifying the signature on the signed attributes.

public static SignerInformation
createWithSignatureAlgorithm(SignerInformation
the source SignerInformation
original
,
AlgorithmIdentifier signatureAlgorithm)

Create a SignerInformation based on original has it's signatureAlgorithm replaced with the passed in AlgorithmIdentifier.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CMSPatchKitback to summary
public CMSPatchKit()

Method Detail

createNonDERSignerInfoback to summary
public static SignerInformation createNonDERSignerInfo(SignerInformation original)

Create a SignerInformation based on original which uses definite-length rather than DER encoding for verifying the signature on the signed attributes.

Parameters
original:SignerInformation

the source SignerInformation

createWithSignatureAlgorithmback to summary
public static SignerInformation createWithSignatureAlgorithm(SignerInformation original, AlgorithmIdentifier signatureAlgorithm)

Create a SignerInformation based on original has it's signatureAlgorithm replaced with the passed in AlgorithmIdentifier.

Parameters
original:SignerInformation

the source SignerInformation

org.bouncycastle.cms back to summary

private Class CMSPatchKit.DLSignerInformation

extends SignerInformation
Class Inheritance

Field Summary

Inherited from org.bouncycastle.cms.SignerInformation:
digestAlgorithmencryptionAlgorithminfosignedAttributeSetunsignedAttributeSet

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public byte[]
getEncodedSignedAttributes()

Overrides org.bouncycastle.cms.SignerInformation.getEncodedSignedAttributes.

return the DER encoding of the signed attributes.

Inherited from org.bouncycastle.cms.SignerInformation:
addCounterSignersgetContentDigestgetContentTypegetCounterSignaturesgetDigestAlgOIDgetDigestAlgorithmIDgetDigestAlgParamsgetEncryptionAlgOIDgetEncryptionAlgParamsgetSIDgetSignaturegetSignedAttributesgetUnsignedAttributesgetVersionisCounterSignaturereplaceUnsignedAttributestoASN1Structureverify

Constructor Detail

DLSignerInformationback to summary
protected DLSignerInformation(SignerInformation baseInfo)

Method Detail

getEncodedSignedAttributesback to summary
public byte[] getEncodedSignedAttributes() throws IOException

Overrides org.bouncycastle.cms.SignerInformation.getEncodedSignedAttributes.

Doc from org.bouncycastle.cms.SignerInformation.getEncodedSignedAttributes.

return the DER encoding of the signed attributes.

Exceptions
IOException:
if an encoding error occurs.
org.bouncycastle.cms back to summary

private Class CMSPatchKit.ModEncAlgSignerInformation

extends SignerInformation
Class Inheritance

Field Summary

Inherited from org.bouncycastle.cms.SignerInformation:
digestAlgorithmencryptionAlgorithminfosignedAttributeSetunsignedAttributeSet

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
private static SignerInfo
editEncAlg(SignerInfo info, AlgorithmIdentifier signatureAlgorithm)

Inherited from org.bouncycastle.cms.SignerInformation:
addCounterSignersgetContentDigestgetContentTypegetCounterSignaturesgetDigestAlgOIDgetDigestAlgorithmIDgetDigestAlgParamsgetEncodedSignedAttributesgetEncryptionAlgOIDgetEncryptionAlgParamsgetSIDgetSignaturegetSignedAttributesgetUnsignedAttributesgetVersionisCounterSignaturereplaceUnsignedAttributestoASN1Structureverify

Constructor Detail

ModEncAlgSignerInformationback to summary
protected ModEncAlgSignerInformation(SignerInformation baseInfo, AlgorithmIdentifier signatureAlgorithm)

Method Detail

editEncAlgback to summary
private static SignerInfo editEncAlg(SignerInfo info, AlgorithmIdentifier signatureAlgorithm)