|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object iaik.smime.ess.EntityIdentifier
public class EntityIdentifier
The S/MIMEv3 ESS type EntityIdentifier.
The Enhanced Security Services
for S/MIMEv3 (ESS) (RFC 2634) specifies the EntityIdentifier
type for identifying the mailing list agent (MLA) to which a MLData
of a MLExpansionHistory
attribute
belongs. The identification may be done by IssuerAndSerialNumber
or
SubjectKeyIdentifier
:
EntityIdentifier ::= CHOICE { issuerAndSerialNumber IssuerAndSerialNumber, subjectKeyIdentifier SubjectKeyIdentifier }When
creating
an EntityIdentifier
the entity has to be represented as IssuerAndSerialNumber
or SubjectKeyID
object, e.g.:
IssuerAndSerialNumber issuerAndSerialNumber = ...; EntityIdentifier entityID = new EntityIdentifier(issuerAndSerialNumber);
IssuerAndSerialNumber
,
SubjectKeyID
,
MLData
,
MLExpansionHistory
Field Summary |
---|
Fields inherited from interface iaik.cms.KeyIdentifier |
---|
ISSUER_AND_SERIALNUMBER, KEK_IDENTIFIER, ORIGINATOR_PUBLIC_KEY, RECIPIENT_KEY_IDENTIFIER, SUBJECT_KEY_IDENTIFIER |
Constructor Summary | |
---|---|
EntityIdentifier(ASN1Object obj)
Creates a EntityIdentifier from an ASN1Object. |
|
EntityIdentifier(CertificateIdentifier identifier)
Creates a EntityIdentifier from the given IssuerAndSerialNumber or SubjectKeyID. |
Method Summary | |
---|---|
void |
decode(ASN1Object obj)
Decodes the EntityIdentifier from the given ASN1Object. |
boolean |
equals(java.lang.Object obj)
Compares this EntityIdentifier to the specified object. |
CertificateIdentifier |
getCertificateIdentifier()
Gets the CertificateIdentifier this EntityIdentifier represents. |
int |
getKeyIdType()
Returns the key identifier type this class represents. |
java.lang.String |
getKeyIdTypeName()
Returns the key (certificate) identifier type this class represents as string. |
int |
hashCode()
Returns a hashcode for this EntityIdentifier . |
boolean |
identifiesCert(X509Certificate cert)
Checks if the given certificate is identified by this CertificateIdentifier. |
boolean |
isMailListIdentifierFor(MLData mlData)
Checks if this EntityIdentifier is a mail list identifier for the given MLData. |
ASN1Object |
toASN1Object()
Returns this EntityIdentifier as ASN1Object. |
java.lang.String |
toString()
Returns a String representation of this EntityIdentifier. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EntityIdentifier(CertificateIdentifier identifier)
Use an IssuerAndSerialNumber
or SubjectKeyID
object for identifying
the entity, e.g.:
IssuerAndSerialNumber issuerAndSerialNumber = ...; EntityIdentifier entityID = new EntityIdentifier(issuerAndSerialNumber);
identifier
- the IssuerAndSerialNumber or SubjectKeyID to
be used for identifying the MLA
java.lang.IllegalArgumentException
- if the supplied identifier is not an
IssuerAndSerialNumber or SubjecKeyIdentifierpublic EntityIdentifier(ASN1Object obj) throws CodingException
obj
- the EntityIdentifier as ASN1Object
CodingException
- if the ASN1Object cannot be decoded or
is invalid structuredMethod Detail |
---|
public CertificateIdentifier getCertificateIdentifier()
public boolean identifiesCert(X509Certificate cert)
identifiesCert
in interface CertificateIdentifier
cert
- the certificate to be checked of being identified
by this CertificateIdentifier
true
if the given certificate is identified by this
CertificateIdentifier, false
otherwisepublic boolean isMailListIdentifierFor(MLData mlData)
mlData
- the MLData which may belong to the MLA identified
by this EntityIdentifier
true
if the given MLData belongs to the MLA identified
by this EntityIdentifier, false
if notpublic void decode(ASN1Object obj) throws CodingException
decode
in interface ASN1Type
obj
- the EntityIdentifier as ASN1Object
CodingException
- if the ASN1Object cannot be decoded or
is invalid structuredpublic ASN1Object toASN1Object()
toASN1Object
in interface ASN1Type
public boolean equals(java.lang.Object obj)
EntityIdentifier
to the specified object.
equals
in interface KeyIdentifier
equals
in class java.lang.Object
obj
- the object to compare this EntityIdentifier
against.
true
, if the given object is equal to this
EntityIdentifier
,
false
otherwisepublic int hashCode()
EntityIdentifier
.
hashCode
in interface KeyIdentifier
hashCode
in class java.lang.Object
EntityIdentifier
public int getKeyIdType()
getKeyIdType
in interface KeyIdentifier
public java.lang.String getKeyIdTypeName()
getKeyIdTypeName
in interface KeyIdentifier
public java.lang.String toString()
toString
in interface KeyIdentifier
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 |