|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--codec.x501.AVA
This class encapsulates the key and value of a parsed
AttributeValueAssertions (AVA), and indicates whether an AVA has a
continuation at the same level (a multi valued RDN). This is not an ASN.1
object, do not add it to e.g., an ASN1Sequence.
RFC2253Parser,
Name| Constructor Summary | |
AVA(String key,
byte[] buf,
boolean hasSibling)
Creates an instance with a DER encoded value. |
|
AVA(String key,
String value,
boolean hasSibling)
Creates an instance. |
|
| Method Summary | |
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
byte[] |
getEncodedValue()
Returns the encoded value of the AVA, if given. |
String |
getKey()
Returns the attribute key of the AVA |
String |
getValue()
Returns the string value of the AVA. |
boolean |
hasSibling()
|
boolean |
isEncodedValue()
Returns the status of the attribute value. |
String |
toString()
Returns the string representation of the AVA. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AVA(String key,
String value,
boolean hasSibling)
key - The attribute key.value - The attribute value.hasSibling - true iff this AVA is followed by another
AVA at the same level. In other words, a value of true
signals that this AVA is one in a sequence of AVAs of a
multi valued RDN.
public AVA(String key,
byte[] buf,
boolean hasSibling)
key - The attribute key.buf - The encoded attribute value.hasSibling - true iff this AVA is followed by another
AVA at the same level. In other words, a value of true
signals that this AVA is one in a sequence of AVAs of a
multi valued RDN.| Method Detail |
public String getKey()
public String getValue()
public boolean hasSibling()
true if this AVA is followed by another one that
was separated from this one by means of a plus sign. In other
words, this AVA and the next belong to the same RDN.public boolean isEncodedValue()
true if the attribute value is a byte array.public byte[] getEncodedValue()
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objecto - the reference object with which to compare.true if this object is the same as the given
object; false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||