|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.cert.extensions.X509V3Extension | +--com.rsa.certj.cert.extensions.SubjectDirectoryAttributes
This class builds and holds the
SubjectDirectoryAttributes
extension. It
conveys any desired directory attribute values for the
subject of the certificate. A certificate user might
need to obtain, in a secure manner, certain
identifying information about a subject to have
confidence that the subject is indeed the person or
thing intended. This information could include
postal address, position in a corporation, or a
picture image. Such information may be
conveniently represented as directory attributes, but
these attributes are not necessarily part of the
distinguished name. This field is therefore needed for
conveying additional directory attributes beyond those
in the distinguished name.
subjectDirectoryAttributes EXTENSION ::= { SYNTAX AttributesSyntax IDENTIFIED BY id-ce-subjectDirectoryAttributes } AttributesSyntax ::= SEQUENCE SIZE (1..MAX) OF Attribute Attribute ::= SEQUENCE { type AttributeType, values SET OF AttributeValue } AttributeType ::= OBJECT IDENTIFIER AttributeValue ::= ANY |
See Also
Constructor Summary |
|
SubjectDirectoryAttributes()
Constructs an empty |
|
SubjectDirectoryAttributes(X501Attribute attribute,
boolean criticality)
Creates a |
Method Summary |
|
void |
addAttribute(X501Attribute attribute)
Adds a directory attribute to this extension. |
clone()
Overrides the default |
|
void |
decodeValue(byte[] valueBER,
int offset)
Decode the value. |
int |
derEncodeValue(byte[] encoding,
int offset)
Place the encoding of the value into encoding, beginning at offset. |
int |
derEncodeValueInit()
Initialize for encoding the value. |
getAttributes(int index)
Gets the directory attribute from this extension at the specified index. |
|
int |
getAttributesCount()
Gets the directory attribute count. |
Methods inherited from class com.rsa.certj.cert.extensions.X509V3Extension |
extend, getCriticality, getDEREncoding, getDERLen, getExtensionType, getExtensionTypeString, getInstance, getNextBEROffset, isExtensionType, setCriticality, setEncoding, setSpecialOID, setStandardOID |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SubjectDirectoryAttributes()
SubjectDirectoryAttributes
object.public SubjectDirectoryAttributes(X501Attribute attribute, boolean criticality)
SubjectDirectoryAttributes
object and
initializes it with the given values.Parameters
attribute | A directory attribute value for the subject of the certificate. | ||
criticality | The user-specified criticality. |
Method Detail |
public void addAttribute(X501Attribute attribute)
Parameters
attribute | The X501 attribute object to add. |
public X501Attribute getAttributes(int index) throws CertificateException
Parameters
index | The index to the directory attribute to return. |
Returns
X501Attribute
object.
Throws
CertificateException
- If the specified index is invalid.public int getAttributesCount()
Returns
public void decodeValue(byte[] valueBER, int offset) throws CertificateException
Overrides
decodeValue
in class X509V3Extension
Parameters
valueBER | The BER encoding of the extension's value. | ||
offset | The offset into valueBER where the encoding begins. |
Throws
CertificateException
- If the encoding is invalid for this
extension.public int derEncodeValueInit()
Overrides
derEncodeValueInit
in class X509V3Extension
Returns
public int derEncodeValue(byte[] encoding, int offset)
Overrides
derEncodeValue
in class X509V3Extension
Parameters
encoding | The byte array into which the result will be placed. | ||
offset | The offest into encoding where the writing is to begin. |
Returns
public Object clone() throws CloneNotSupportedException
clone
method
to get a deeper clone.
Overrides
clone
in class X509V3Extension
Returns
SubjectDirectoryAttributes
object,
a copy of this object.
Throws
CloneNotSupportedException
- If the cloning operation
is not successful.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |