Package org.bouncycastle.asn1.smime
Class SMIMECapabilities
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.smime.SMIMECapabilities
- All Implemented Interfaces:
ASN1Encodable,Encodable
Handler class for dealing with S/MIME Capabilities
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ASN1ObjectIdentifierstatic final ASN1ObjectIdentifierstatic final ASN1ObjectIdentifierencryption algorithms preferencesstatic final ASN1ObjectIdentifierstatic final ASN1ObjectIdentifierstatic final ASN1ObjectIdentifierstatic final ASN1ObjectIdentifierstatic final ASN1ObjectIdentifierstatic final ASN1ObjectIdentifiergeneral preferencesstatic final ASN1ObjectIdentifierstatic final ASN1ObjectIdentifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCapabilities(ASN1ObjectIdentifier capability) returns a vector with 0 or more objects of all the capabilities matching the passed in capability OID.static SMIMECapabilitiesreturn an Attribute object from the given object.Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Field Details
-
preferSignedData
general preferences -
canNotDecryptAny
-
sMIMECapabilitesVersions
-
aes256_CBC
encryption algorithms preferences -
aes192_CBC
-
aes128_CBC
-
idea_CBC
-
cast5_CBC
-
dES_CBC
-
dES_EDE3_CBC
-
rC2_CBC
-
-
Constructor Details
-
SMIMECapabilities
-
-
Method Details
-
getInstance
return an Attribute object from the given object.- Parameters:
o- the object we want converted.- Throws:
IllegalArgumentException- if the object cannot be converted.
-
getCapabilities
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
Produce an object suitable for an ASN1OutputStream.SMIMECapabilities ::= SEQUENCE OF SMIMECapability
- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-