org.bouncycastle.asn1.smime

Class SMIMEEncryptionKeyPreferenceAttribute

Implemented Interfaces:
DEREncodable

public class SMIMEEncryptionKeyPreferenceAttribute
extends Attribute

The SMIMEEncryptionKeyPreference object.
 SMIMEEncryptionKeyPreference ::= CHOICE {
     issuerAndSerialNumber   [0] IssuerAndSerialNumber,
     receipentKeyId          [1] RecipientKeyIdentifier,
     subjectAltKeyIdentifier [2] SubjectKeyIdentifier
 }
 

Constructor Summary

SMIMEEncryptionKeyPreferenceAttribute(ASN1OctetString sKeyId)
SMIMEEncryptionKeyPreferenceAttribute(IssuerAndSerialNumber issAndSer)
SMIMEEncryptionKeyPreferenceAttribute(RecipientKeyIdentifier rKeyId)

Method Summary

Methods inherited from class org.bouncycastle.asn1.cms.Attribute

getAttrType, getAttrValues, getInstance, toASN1Object

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDERObject, getEncoded, hashCode, toASN1Object

Constructor Details

SMIMEEncryptionKeyPreferenceAttribute

public SMIMEEncryptionKeyPreferenceAttribute(ASN1OctetString sKeyId)

Parameters:
sKeyId - the subjectKeyIdentifier value (normally the X.509 one)


SMIMEEncryptionKeyPreferenceAttribute

public SMIMEEncryptionKeyPreferenceAttribute(IssuerAndSerialNumber issAndSer)


SMIMEEncryptionKeyPreferenceAttribute

public SMIMEEncryptionKeyPreferenceAttribute(RecipientKeyIdentifier rKeyId)