Top Description Fields Constructors Methods
org.bouncycastle.asn1.smime

public Class SMIMECapabilities

extends ASN1Object
Class Inheritance
Imports
java.util.Enumeration, .Vector, org.bouncycastle.asn1.ASN1Object, .ASN1ObjectIdentifier, .ASN1Primitive, .ASN1Sequence, org.bouncycastle.asn1.cms.Attribute, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers

Handler class for dealing with S/MIME Capabilities

Field Summary

Modifier and TypeField and Description
public static final ASN1ObjectIdentifier
public static final ASN1ObjectIdentifier
public static final ASN1ObjectIdentifier
aes256_CBC

encryption algorithms preferences

public static final ASN1ObjectIdentifier
private ASN1Sequence
public static final ASN1ObjectIdentifier
public static final ASN1ObjectIdentifier
public static final ASN1ObjectIdentifier
public static final ASN1ObjectIdentifier
public static final ASN1ObjectIdentifier
preferSignedData

general preferences

public static final ASN1ObjectIdentifier
public static final ASN1ObjectIdentifier

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Vector<E>
getCapabilities(ASN1ObjectIdentifier capability)

returns a vector with 0 or more objects of all the capabilities matching the passed in capability OID.

public static SMIMECapabilities
getInstance(Object
the object we want converted.
o
)

return an Attribute object from the given object.

public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

aes128_CBCback to summary
public static final ASN1ObjectIdentifier aes128_CBC
aes192_CBCback to summary
public static final ASN1ObjectIdentifier aes192_CBC
aes256_CBCback to summary
public static final ASN1ObjectIdentifier aes256_CBC

encryption algorithms preferences

canNotDecryptAnyback to summary
public static final ASN1ObjectIdentifier canNotDecryptAny
capabilitiesback to summary
private ASN1Sequence capabilities
cast5_CBCback to summary
public static final ASN1ObjectIdentifier cast5_CBC
dES_CBCback to summary
public static final ASN1ObjectIdentifier dES_CBC
dES_EDE3_CBCback to summary
public static final ASN1ObjectIdentifier dES_EDE3_CBC
idea_CBCback to summary
public static final ASN1ObjectIdentifier idea_CBC
preferSignedDataback to summary
public static final ASN1ObjectIdentifier preferSignedData

general preferences

rC2_CBCback to summary
public static final ASN1ObjectIdentifier rC2_CBC
sMIMECapabilitesVersionsback to summary
public static final ASN1ObjectIdentifier sMIMECapabilitesVersions

Constructor Detail

SMIMECapabilitiesback to summary
public SMIMECapabilities(ASN1Sequence seq)

Method Detail

getCapabilitiesback to summary
public Vector<E> 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.

getInstanceback to summary
public static SMIMECapabilities getInstance(Object o)

return an Attribute object from the given object.

Parameters
o:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

SMIMECapabilities ::= SEQUENCE OF SMIMECapability
Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.