public class AVA
extends java.lang.Object
implements com.tencent.kona.sun.security.util.DerEncoder
AVAs are components of X.500 relative names. Think of them as being individual fields of a database record. The attribute ID is how you identify the field, and the value is part of a particular record.
Note that instances of this class are immutable.
| Constructor and Description |
|---|
AVA(com.tencent.kona.sun.security.util.ObjectIdentifier type,
com.tencent.kona.sun.security.util.DerValue val) |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(com.tencent.kona.sun.security.util.DerOutputStream out)
DER encode this object onto an output stream.
|
boolean |
equals(java.lang.Object obj) |
com.tencent.kona.sun.security.util.DerValue |
getDerValue()
Get the value of this AVA as a DerValue.
|
com.tencent.kona.sun.security.util.ObjectIdentifier |
getObjectIdentifier()
Get the ObjectIdentifier of this AVA.
|
java.lang.String |
getValueString()
Get the value of this AVA as a String.
|
int |
hashCode()
Returns a hashcode for this AVA.
|
java.lang.String |
toRFC1779String()
Returns a printable form of this attribute, using RFC 1779
syntax for individual attribute/value assertions.
|
java.lang.String |
toRFC1779String(java.util.Map<java.lang.String,java.lang.String> oidMap)
Returns a printable form of this attribute, using RFC 1779
syntax for individual attribute/value assertions.
|
java.lang.String |
toRFC2253CanonicalString() |
java.lang.String |
toRFC2253String()
Returns a printable form of this attribute, using RFC 2253
syntax for individual attribute/value assertions.
|
java.lang.String |
toRFC2253String(java.util.Map<java.lang.String,java.lang.String> oidMap)
Returns a printable form of this attribute, using RFC 2253
syntax for individual attribute/value assertions.
|
java.lang.String |
toString()
Returns a printable form of this attribute, using RFC 1779
syntax for individual attribute/value assertions.
|
public AVA(com.tencent.kona.sun.security.util.ObjectIdentifier type,
com.tencent.kona.sun.security.util.DerValue val)
public com.tencent.kona.sun.security.util.ObjectIdentifier getObjectIdentifier()
public com.tencent.kona.sun.security.util.DerValue getDerValue()
public java.lang.String getValueString()
java.lang.RuntimeException - if we could not obtain the string form
(should not occur)public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void encode(com.tencent.kona.sun.security.util.DerOutputStream out)
DerEncoder interface.encode in interface com.tencent.kona.sun.security.util.DerEncoderout - the output stream on which to write the DER encoding.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toRFC1779String()
public java.lang.String toRFC1779String(java.util.Map<java.lang.String,java.lang.String> oidMap)
public java.lang.String toRFC2253String()
public java.lang.String toRFC2253String(java.util.Map<java.lang.String,java.lang.String> oidMap)
public java.lang.String toRFC2253CanonicalString()