org.bouncycastle.asn1.smime

Class SMIMECapabilities

Implemented Interfaces:
DEREncodable

public class SMIMECapabilities
extends ASN1Encodable

Handler class for dealing with S/MIME Capabilities

Field Summary

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
sMIMECapabilitesVersions

Constructor Summary

SMIMECapabilities(ASN1Sequence seq)

Method Summary

Vector
getCapabilities(DERObjectIdentifier capability)
returns a vector with 0 or more objects of all the capabilities matching the passed in capability OID.
static SMIMECapabilities
getInstance(Object o)
return an Attribute object from the given object.
DERObject
toASN1Object()
Produce an object suitable for an ASN1OutputStream.

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDERObject, getEncoded, hashCode, toASN1Object

Field Details

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 Details

SMIMECapabilities

public SMIMECapabilities(ASN1Sequence seq)

Method Details

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.


toASN1Object

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