public class EntrustCertInfoId extends java.lang.Object implements ASN1Type
EntrustCertInfoId ::= SEQUENCE {
name UTF8String OPTIONAL, -- at least one of name/id must be given
id INTEGER OPTIONAL
};
| Constructor and Description |
|---|
EntrustCertInfoId(ASN1Object obj)
Creates a new
EntrustCertInfoId from an
ASN1Object. |
EntrustCertInfoId(java.math.BigInteger id)
Creates a new
EntrustCertInfoId object with the specified
component. |
EntrustCertInfoId(java.lang.String name)
Creates a new
EntrustCertInfoId object with the specified
component. |
EntrustCertInfoId(java.lang.String name,
java.math.BigInteger id)
Creates a new
EntrustCertInfoId object with the specified
components. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an EntrustCertInfoId structure from an
ASN1Object. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
java.math.BigInteger |
getId()
Returns the certificate information identifier if it has been set;
otherwise
null is returned. |
java.lang.String |
getName()
Returns the name of the certificate information identifier if it has been
set; otherwise
null is returned.. |
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isEquivalent(EntrustCertInfoId entrustCertInfoId)
Indicates whether this
EntrustCertInfoId object is equivalent
to another EntrustCertInfoId object. |
void |
setId(java.math.BigInteger id)
Sets the certificate information identifier.
|
void |
setName(java.lang.String name)
Sets the name of the certificate information identifier.
|
ASN1Object |
toASN1Object()
Encodes this
EntrustCertInfoId object as an
ASN1Object. |
java.lang.String |
toMessageString()
Creates a message string that represents the contents of this
EntrustCertInfoId object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
EntrustCertInfoId object. |
public EntrustCertInfoId(java.lang.String name)
EntrustCertInfoId object with the specified
component.name - the name of the certificate information identifierpublic EntrustCertInfoId(java.math.BigInteger id)
EntrustCertInfoId object with the specified
component.id - the certificate information identifierpublic EntrustCertInfoId(java.lang.String name,
java.math.BigInteger id)
EntrustCertInfoId object with the specified
components.id - the certificate information identifiername - the name of the certificate information identifierpublic EntrustCertInfoId(ASN1Object obj) throws CodingException
EntrustCertInfoId from an
ASN1Object.obj - the ASN.1 representation of an EntrustCertInfoId structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic java.lang.String getName()
null is returned..public java.math.BigInteger getId()
null is returned.public void setName(java.lang.String name)
The name cannot be set to null when the id is also
null.
name - the name componentpublic void setId(java.math.BigInteger id)
The id cannot be set to null when the name is also
null.
id - the id componentpublic void decode(ASN1Object obj) throws CodingException
ASN1Object.decode in interface ASN1Typeobj - an ASN.1 representation of an EntrustCertInfoId structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
EntrustCertInfoId object as an
ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
EntrustCertInfoId object.toString in class java.lang.Objectpublic java.lang.String toMessageString()
EntrustCertInfoId object. This method can be used to create
messages that can be returned in exceptions.public boolean equals(java.lang.Object obj)
Two EntrustCertInfoId objects are equal only if their
components are equal.
equals in class java.lang.Objectobj - the reference object with which to comparetrue if the objects are "equal"; false
otherwisepublic boolean isEquivalent(EntrustCertInfoId entrustCertInfoId)
EntrustCertInfoId object is equivalent
to another EntrustCertInfoId object.
Two EntrustCertInfoId objects are equivalent if they represent
the same Entrust certificate information identifier; this occurs when either
the name or id components match when one of them is null, or when both components
are non-null and equal.
For example: If this object is configured with an id of 2 and name of "Verification" (denoted [2:Verification] for simplicity), it would match when the passed in EntrustCertInfoId contains [2:Verification]. It would also match when [null:Verification] or [2:null] is used. It would not match if [71:Verification] or [2:Encryption] were used.
entrustCertInfoId - the EntrustCertInfoId object with which to comparetrue if the objects are equavalent; false
otherwisepublic int hashCode()
hashCode in class java.lang.Object