|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiaik.smime.ess.MLData
public class MLData
The S/MIMEv3 ESS type MLData.
The Enhanced Security Services
for S/MIMEv3 (ESS) (RFC 2634) specifies the MLData
type to be included in an MLExpansionHistory
attribute for carrying the expansion history describing
each mailing list agent (MLA) that has processed a message. As an MLA
distributes a message to members of an ML, the MLA records its unique
identifier, date and time of expansion, and receipt policy in an MLData
structure:
MLData ::= SEQUENCE { mailListIdentifier EntityIdentifier, expansionTime GeneralizedTime, mlReceiptPolicy MLReceiptPolicy OPTIONAL }When
creating
an MLData object
the EntityIdentifier uniquely identifying the MLA and the time at
which the MLA has processed the message has to be supplied.
A MLReceiptPolicy
may be
subsequently supplied
to supersede the originator request for signed receipts, e.g.:
// the MLA is identified by an IssuerAndSerialNumber: IssuerAndSerialNumber issuerAndSerialNumber = ...; EntityIdentifier mailListID = new EntityIdentifier(issuerAndSerialNumber); // the time the MLA processed the message Date expansionTime = ...; // create the MLData: MLData mlData = new MLData(mailListID, expansionTime); // a list of recipients to which receipts should be returned in addition to the originator: GeneralNames recipientList = ...; // create a MLReceiptPolicy of appropriate type: MLReceiptPolicy mlReceiptPolicy = new MLReceiptPolicy(MLReceiptPolicy.IN_ADDITION_TO, recipientList); // set the MLReceiptPolicy of the MLData: mlData.setMLReceiptPolicy(mlReceiptPolicy);After having created an MLData it may be
added
to the list of MLData entries of
an MLExpansionHistory
attribute:
mlExpansionHistory.addMLData(mlData);
EntityIdentifier
,
MLReceiptPolicy
,
MLExpansionHistory
Constructor Summary | |
---|---|
MLData()
Empty default constructor. |
|
MLData(ASN1Object obj)
Creates a MLData from an ASN1Object. |
|
MLData(EntityIdentifier mailListIdentifier,
java.util.Date expansionTime)
Creates a MLData object from given mail list identifier and expansion time. |
Method Summary | |
---|---|
boolean |
belongsTo(EntityIdentifier mailListIdentifier)
Checks if this MLData belongs to the MLA identified by the given mail list identifier. |
void |
decode(ASN1Object obj)
Decodes an MLData from its ASN.1 representation. |
boolean |
equals(java.lang.Object obj)
Compares this MLData to the specified object. |
java.util.Date |
getExpansionTime()
Gets the expansion time of this MLData. |
EntityIdentifier |
getMailListIdentifier()
Gets the mail list identifier of this MLData. |
MLReceiptPolicy |
getMLReceiptPolicy()
Gets the MLReceiptPolicy of this MLData, if present. |
int |
hashCode()
Returns a hashcode for this object. |
void |
setMLReceiptPolicy(MLReceiptPolicy mlReceiptPolicy)
Sets the optional MLReceiptPolicy component of this MLData. |
ASN1Object |
toASN1Object()
Returns this MLData as ASN1Object. |
java.lang.String |
toString()
Returns a String representation of this MLData. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MLData()
public MLData(EntityIdentifier mailListIdentifier, java.util.Date expansionTime)
Use method setMLReceiptPolicy
if you have to set the optional MLReceiptPolicy component.
mailListIdentifier
- the entity identifier identifying the mail list
agent (MLA) to which this MLData belongsexpansionTime
- the time at which the MLA processed the messagepublic MLData(ASN1Object obj) throws CodingException
obj
- the MLData as ASN1Object
CodingException
- if an error occurs while parsing the
ASN1ObjectMethod Detail |
---|
public void setMLReceiptPolicy(MLReceiptPolicy mlReceiptPolicy)
mlReceiptPolicy
- the receipt policy superseding the originator
request for signed receiptspublic EntityIdentifier getMailListIdentifier()
public java.util.Date getExpansionTime()
public MLReceiptPolicy getMLReceiptPolicy()
null
if no MLReceiptPolicy
is setpublic boolean belongsTo(EntityIdentifier mailListIdentifier)
mailListIdentifier
- the EntityIdentifier identifying the MLA
in mind
true
if this MLData belongs to the MLA
identified by the given mail list identifier.public boolean equals(java.lang.Object obj)
MLData
to the specified object.
equals
in class java.lang.Object
obj
- the object to compare this MLData
against.
true
, if the given object is equal to this
MLData
,
false
otherwisepublic int hashCode()
hashCode
in class java.lang.Object
public void decode(ASN1Object obj) throws CodingException
decode
in interface ASN1Type
obj
- the MLData as ASN1Object
CodingException
- if an error occurs while parsing the
ASN1Objectpublic ASN1Object toASN1Object() throws CodingException
toASN1Object
in interface ASN1Type
CodingException
public java.lang.String toString()
toString
in class java.lang.Object
|
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 |