public class

SMIMECapabilities

extends ASN1Encodable
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.smime.SMIMECapabilities

Class Overview

Handler class for dealing with S/MIME Capabilities

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Fields
public static final DERObjectIdentifier canNotDecryptAny
public static final DERObjectIdentifier dES_CBC encryption algorithms preferences
public static final DERObjectIdentifier dES_EDE3_CBC
public static final DERObjectIdentifier preferSignedData general preferences
public static final DERObjectIdentifier rC2_CBC
public static final DERObjectIdentifier sMIMECapabilitesVersions
Public Constructors
SMIMECapabilities(ASN1Sequence seq)
Public Methods
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.
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Fields

public static final DERObjectIdentifier canNotDecryptAny

public static final DERObjectIdentifier dES_CBC

encryption algorithms preferences

public static final DERObjectIdentifier dES_EDE3_CBC

public static final DERObjectIdentifier preferSignedData

general preferences

public static final DERObjectIdentifier rC2_CBC

public static final DERObjectIdentifier sMIMECapabilitesVersions

Public Constructors

public SMIMECapabilities (ASN1Sequence seq)

Public Methods

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.

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.

public DERObject toASN1Object ()

Produce an object suitable for an ASN1OutputStream.

 SMIMECapabilities ::= SEQUENCE OF SMIMECapability