org.bouncycastle.asn1.smime

Class SMIMECapability

Implemented Interfaces:
DEREncodable

public class SMIMECapability
extends ASN1Encodable

Field Summary

static DERObjectIdentifier
aES128_CBC
static DERObjectIdentifier
aES192_CBC
static DERObjectIdentifier
aES256_CBC
static DERObjectIdentifier
canNotDecryptAny
static DERObjectIdentifier
dES_CBC
encryption algorithms preferences
static DERObjectIdentifier
dES_EDE3_CBC
static DERObjectIdentifier
preferSignedData
general preferences
static DERObjectIdentifier
rC2_CBC
static DERObjectIdentifier
sMIMECapabilitiesVersions

Fields inherited from class org.bouncycastle.asn1.ASN1Encodable

BER, DER

Constructor Summary

SMIMECapability(ASN1Sequence seq)
SMIMECapability(DERObjectIdentifier capabilityID, DEREncodable parameters)

Method Summary

DERObjectIdentifier
getCapabilityID()
static SMIMECapability
getInstance(Object obj)
DEREncodable
getParameters()
DERObject
toASN1Object()
Produce an object suitable for an ASN1OutputStream.

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode, toASN1Object

Field Details

aES128_CBC

public static final DERObjectIdentifier aES128_CBC

aES192_CBC

public static final DERObjectIdentifier aES192_CBC

aES256_CBC

public static final DERObjectIdentifier aES256_CBC

canNotDecryptAny

public static final DERObjectIdentifier canNotDecryptAny

dES_CBC

public static final DERObjectIdentifier dES_CBC
encryption algorithms preferences

dES_EDE3_CBC

public static final DERObjectIdentifier dES_EDE3_CBC

preferSignedData

public static final DERObjectIdentifier preferSignedData
general preferences

rC2_CBC

public static final DERObjectIdentifier rC2_CBC

sMIMECapabilitiesVersions

public static final DERObjectIdentifier sMIMECapabilitiesVersions

Constructor Details

SMIMECapability

public SMIMECapability(ASN1Sequence seq)

SMIMECapability

public SMIMECapability(DERObjectIdentifier capabilityID,
                       DEREncodable parameters)

Method Details

getCapabilityID

public DERObjectIdentifier getCapabilityID()

getInstance

public static SMIMECapability getInstance(Object obj)

getParameters

public DEREncodable getParameters()

toASN1Object

public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
 
 SMIMECapability ::= SEQUENCE {
     capabilityID OBJECT IDENTIFIER,
     parameters ANY DEFINED BY capabilityID OPTIONAL 
 }
 
Overrides:
toASN1Object in interface ASN1Encodable