|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object iaik.asn1.structures.AttributeValue iaik.smime.attributes.MSOEEncryptionKeyPreference
public class MSOEEncryptionKeyPreference
The MSOEEncryptionKeyPreference attribute.
MSOEEncryptionKeyPreference is a private ("1.3.6.1.4.1.311.16.4") attribute that is required by some versions of Microsoft Outlook (e.g. Express) to recognize the encryption cert in a signed message of a sender using different certs for encryption and signing. The encryption cert can be announced by an IssuerAndSerialNumber:
MSOEEncryptionKeyPreference ::= IssuerAndSerialNumber
When creating
a MSOEEncryptionKeyPreference object specify the IssuerAndSerialNumber
for the encryption certificate of the sender, e.g.:
X509Certificate encyrptionCert = ...; IssuerAndSerialNumber ias = new IssuerAndSerialNumber(encryptionCert); MSOEEncryptionKeyPreference MSOEEncryptionKeyPreference = new MSOEEncryptionKeyPreference(ias);
IssuerAndSerialNumber
Field Summary | |
---|---|
static ObjectID |
oid
The attributeType object identifier of this MSOEEncryptionKeyPreference attribute. |
Constructor Summary | |
---|---|
MSOEEncryptionKeyPreference()
Empty default constructor. |
|
MSOEEncryptionKeyPreference(ASN1Object obj)
Creates an MSOEEncryptionKeyPreference from its ASN.1 representation. |
|
MSOEEncryptionKeyPreference(IssuerAndSerialNumber encryptionCertID)
Creates an MSOEEncryptionKeyPreference for the given encryption cert identifier. |
Method Summary | |
---|---|
void |
decode(ASN1Object obj)
Decodes the given ASN.1 MSOEEncryptionKeyPreference object for
parsing the internal structure. |
boolean |
equals(java.lang.Object obj)
Compares this MSOEEncryptionKeyPreference to the specified object. |
ObjectID |
getAttributeType()
Returns the OID identifying the MSOEEncryptionKeyPreference attribute type. |
IssuerAndSerialNumber |
getEncryptionCertID()
Returns the the encryption cert id. |
int |
hashCode()
Returns a hashcode for this MSOEEncryptionKeyPreference. |
ASN1Object |
toASN1Object()
Returns this MSOEEncryptionKeyPreference as ASN1Object. |
java.lang.String |
toString()
Returns a string representation of this MSOEEncryptionKeyPreference. |
Methods inherited from class iaik.asn1.structures.AttributeValue |
---|
getName, multipleAllowed |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ObjectID oid
MSOEEncryptionKeyPreference
attribute.
The corresponding OID string is "1.3.6.1.4.1.311.16.4".
Constructor Detail |
---|
public MSOEEncryptionKeyPreference()
public MSOEEncryptionKeyPreference(IssuerAndSerialNumber encryptionCertID)
encryptionCertID
- the IssuerAndSerialNumber identifying the
encryption cert of the senderpublic MSOEEncryptionKeyPreference(ASN1Object obj) throws CodingException
obj
- the MSOEEncryptionKeyPreference as ASN1Object
CodingException
- if the encoding is invalidMethod Detail |
---|
public IssuerAndSerialNumber getEncryptionCertID()
public void decode(ASN1Object obj) throws CodingException
MSOEEncryptionKeyPreference
object for
parsing the internal structure.
obj
- the MSOEEncryptionKeyPreference as ASN1Object
CodingException
- if the ASN1Object cannot be parsedpublic ASN1Object toASN1Object() throws CodingException
CodingException
- if the ASN.1 object cannot be builtpublic ObjectID getAttributeType()
getAttributeType
in class AttributeValue
public boolean equals(java.lang.Object obj)
MSOEEncryptionKeyPreference
to the specified object.
equals
in class java.lang.Object
obj
- the object to compare this MSOEEncryptionKeyPreference
against.
true
, if the given object is equal to this
MSOEEncryptionKeyPreference
,
false
otherwisepublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class AttributeValue
|
This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |