|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.cert.attributes.X501Attribute | +--com.rsa.certj.cert.attributes.Pseudonym
This class holds, encodes, and decodes the
Pseudonym
attribute, which is defined
in PKCS #9. The Pseudonym
attribute type contains a pseudonym
of a subject. The exact interpretation of pseudonyms is intended to
be specified by certificate issuers. No particular interpretation
is required.
pseudonym ATTRIBUTE ::= { WITH SYNTAX DirectoryString {pkcs-9-ub-pseudonym} EQUALITY MATCHING RULE caseExactMatch ID id-at-pseudonym } |
See Also
Fields inherited from class com.rsa.certj.cert.attributes.X501Attribute |
CHALLENGE_PASSWORD, CONTENT_TYPE, COUNTRY_OF_CITIZENSHIP, COUNTRY_OF_RESIDENCE, CRS_DUAL_STATUS, CRS_FAILURE_INFO, CRS_MESSAGE_TYPE, CRS_PKI_STATUS, CRS_RECIPIENT_NONCE, CRS_SENDER_NONCE, CRS_TRANSACTION_ID, CRS_VERSION, DATE_OF_BIRTH, FRIENDLY_NAME, GENDER, LOCAL_KEY_ID, MESSAGE_DIGEST, NON_STANDARD, PLACE_OF_BIRTH, POSTAL_ADDRESS, PSEUDONYM, SIGNING_TIME, SMART_CSP, X509_V3_EXTENSION |
Constructor Summary |
|
Pseudonym()
Constructs an empty |
|
Pseudonym(String pseudonym,
int stringType)
Constructs a |
Method Summary |
|
clone()
Overrides the default |
|
boolean |
equals(Object obj)
Returns |
getPseudonym()
Gets the value of this attribute, the pseudonym. |
|
void |
setPseudonym(String pseudonym,
int stringType)
Sets the value of this attribute, |
Methods inherited from class com.rsa.certj.cert.attributes.X501Attribute |
clearSensitiveData, compareOID, derEncodeAttributeLen, getAttributeType, getAttributeTypeString, getDEREncoding, getDERLen, getInstance, getNextBEROffset, getOID, isAttributeType |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Pseudonym()
Pseudonym
object.public Pseudonym(String pseudonym, int stringType) throws AttributeException
Pseudonym
object and initializes it
with the value given.Parameters
pseudonym | A pseudonym of a subject. | ||
stringType | The pseudonym is BER-encoded,
as this is an ASN.1 string type.
This argument
must be one of the following fields:
|
Throws
AttributeException
- If the specified
stringType is invalid, or if pseudonym
is null
.Method Detail |
public void setPseudonym(String pseudonym, int stringType) throws AttributeException
Pseudonym
, to
pseudonym.
Parameters
pseudonym | The pseudonym to store. | ||
stringType | The pseudonym is BER-encoded,
as this is an ASN.1 string type.
This argument
must be one of the following fields:
|
Throws
AttributeException
- If the encoding
is invalid for this attribute, or if pseudonym
is null
.public String getPseudonym()
Returns
String
indicating the pseudonym value.public Object clone() throws CloneNotSupportedException
clone
method to get a deeper clone.
Overrides
clone
in class X501Attribute
Returns
Pseudonym
object, a copy of this object.
Throws
CloneNotSupportedException
- If the cloning operation
is not successful.public boolean equals(Object obj)
true
if this object and obj
contain the same Pseudonym
;
returns false
, otherwise.Overrides
equals
in class Object
Parameters
obj | The instance of the |
Returns
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |