org.bouncycastle.asn1.smime

Class SMIMECapabilities

public class SMIMECapabilities extends ASN1Encodable

Handler class for dealing with S/MIME Capabilities
Field Summary
static DERObjectIdentifiercanNotDecryptAny
static DERObjectIdentifierdES_CBC
encryption algorithms preferences
static DERObjectIdentifierdES_EDE3_CBC
static DERObjectIdentifierpreferSignedData
general preferences
static DERObjectIdentifierrC2_CBC
static DERObjectIdentifiersMIMECapabilitesVersions
Constructor Summary
SMIMECapabilities(ASN1Sequence seq)
Method Summary
VectorgetCapabilities(DERObjectIdentifier capability)
returns a vector with 0 or more objects of all the capabilities matching the passed in capability OID.
static SMIMECapabilitiesgetInstance(Object o)
return an Attribute object from the given object.
DERObjecttoASN1Object()
Produce an object suitable for an ASN1OutputStream.

Field Detail

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

sMIMECapabilitesVersions

public static final DERObjectIdentifier sMIMECapabilitesVersions

Constructor Detail

SMIMECapabilities

public SMIMECapabilities(ASN1Sequence seq)

Method Detail

getCapabilities

public Vector getCapabilities(DERObjectIdentifier capability)
returns a vector with 0 or more objects of all the capabilities matching the passed in capability OID. If the OID passed is null the entire set is returned.

getInstance

public static SMIMECapabilities getInstance(Object o)
return an Attribute object from the given object.

Parameters: o the object we want converted.

Throws: IllegalArgumentException if the object cannot be converted.

toASN1Object

public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
 SMIMECapabilities ::= SEQUENCE OF SMIMECapability