SMIMECapabilities (Bouncy Castle Library 1.52 API Specification)
Date: 2015-03-01

org.bouncycastle.asn1.smime

## Class SMIMECapabilities

- java.lang.Object
- - org.bouncycastle.asn1.ASN1Object
  - - org.bouncycastle.asn1.smime.SMIMECapabilities

- All Implemented Interfaces:
    ASN1Encodable, Encodable

      public class SMIMECapabilities
      extends ASN1Object

  Handler class for dealing with S/MIME Capabilities

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static ASN1ObjectIdentifier` | `canNotDecryptAny`
    `static ASN1ObjectIdentifier` | `dES_CBC` encryption algorithms preferences
    `static ASN1ObjectIdentifier` | `dES_EDE3_CBC`
    `static ASN1ObjectIdentifier` | `preferSignedData` general preferences
    `static ASN1ObjectIdentifier` | `rC2_CBC`
    `static ASN1ObjectIdentifier` | `sMIMECapabilitesVersions`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SMIMECapabilities(ASN1Sequence seq)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.Vector` | `getCapabilities(ASN1ObjectIdentifier capability)` returns a vector with 0 or more objects of all the capabilities matching the passed in capability OID.
    `static SMIMECapabilities` | `getInstance(java.lang.Object o)` return an Attribute object from the given object.
    `ASN1Primitive` | `toASN1Primitive()` Produce an object suitable for an ASN1OutputStream.

    - ### Methods inherited from class org.bouncycastle.asn1.ASN1Object

      `equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### preferSignedData

          public static final ASN1ObjectIdentifier preferSignedData

      general preferences

    - #### canNotDecryptAny

          public static final ASN1ObjectIdentifier canNotDecryptAny

    - #### sMIMECapabilitesVersions

          public static final ASN1ObjectIdentifier sMIMECapabilitesVersions

    - #### dES_CBC

          public static final ASN1ObjectIdentifier dES_CBC

      encryption algorithms preferences

    - #### dES_EDE3_CBC

          public static final ASN1ObjectIdentifier dES_EDE3_CBC

    - #### rC2_CBC

          public static final ASN1ObjectIdentifier rC2_CBC

  - ### Constructor Detail

    - #### SMIMECapabilities

          public SMIMECapabilities(ASN1Sequence seq)

  - ### Method Detail

    - #### getInstance

          public static SMIMECapabilities getInstance(java.lang.Object o)

      return an Attribute object from the given object.
      Parameters:
        `o` - the object we want converted.
      Throws:
        `java.lang.IllegalArgumentException` - if the object cannot be converted.

    - #### getCapabilities

          public java.util.Vector getCapabilities(ASN1ObjectIdentifier 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.

    - #### toASN1Primitive

          public ASN1Primitive toASN1Primitive()

      Produce an object suitable for an ASN1OutputStream.

           SMIMECapabilities ::= SEQUENCE OF SMIMECapability

      Specified by:
        `toASN1Primitive` in interface `ASN1Encodable`
      Specified by:
        `toASN1Primitive` in class `ASN1Object`
      Returns:
        a primitive representation of this object.