org.bouncycastle.cms

Class CMSSignedGenerator

Known Direct Subclasses:
CMSSignedDataGenerator, CMSSignedDataStreamGenerator

public class CMSSignedGenerator
extends java.lang.Object

Field Summary

static String
DATA
Default type for the signed data.
static String
DIGEST_GOST3411
static String
DIGEST_MD5
static String
DIGEST_SHA1
static String
DIGEST_SHA224
static String
DIGEST_SHA256
static String
DIGEST_SHA384
static String
DIGEST_SHA512
static String
ENCRYPTION_DSA
static String
ENCRYPTION_ECDSA
static String
ENCRYPTION_ECGOST3410
static String
ENCRYPTION_GOST3410
static String
ENCRYPTION_RSA
static String
ENCRYPTION_RSA_PSS

Constructor Summary

CMSSignedGenerator()

Method Summary

protected String
getEncOID(PrivateKey key, String digestOID)
protected ASN1Set
getSignedAttributeSet(DERObjectIdentifier contentType, byte[] hash, AttributeTable attr, boolean addDefaultAttributes)
protected ASN1Set
getUnsignedAttributeSet(AttributeTable attr)

Field Details

DATA

public static final String DATA
Default type for the signed data.

DIGEST_GOST3411

public static final String DIGEST_GOST3411

DIGEST_MD5

public static final String DIGEST_MD5

DIGEST_SHA1

public static final String DIGEST_SHA1

DIGEST_SHA224

public static final String DIGEST_SHA224

DIGEST_SHA256

public static final String DIGEST_SHA256

DIGEST_SHA384

public static final String DIGEST_SHA384

DIGEST_SHA512

public static final String DIGEST_SHA512

ENCRYPTION_DSA

public static final String ENCRYPTION_DSA

ENCRYPTION_ECDSA

public static final String ENCRYPTION_ECDSA

ENCRYPTION_ECGOST3410

public static final String ENCRYPTION_ECGOST3410

ENCRYPTION_GOST3410

public static final String ENCRYPTION_GOST3410

ENCRYPTION_RSA

public static final String ENCRYPTION_RSA

ENCRYPTION_RSA_PSS

public static final String ENCRYPTION_RSA_PSS

Constructor Details

CMSSignedGenerator

protected CMSSignedGenerator()

Method Details

getEncOID

protected String getEncOID(PrivateKey key,
                           String digestOID)

getSignedAttributeSet

protected ASN1Set getSignedAttributeSet(DERObjectIdentifier contentType,
                                        byte[] hash,
                                        AttributeTable attr,
                                        boolean addDefaultAttributes)

getUnsignedAttributeSet

protected ASN1Set getUnsignedAttributeSet(AttributeTable attr)