public class AVA extends java.lang.Object implements 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(ObjectIdentifier type,
DerValue val) |
| Modifier and Type | Method and Description |
|---|---|
void |
derEncode(java.io.OutputStream out)
DER encode this object onto an output stream.
|
void |
encode(DerOutputStream out) |
boolean |
equals(java.lang.Object obj) |
DerValue |
getDerValue()
Get the value of this AVA as a DerValue.
|
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(ObjectIdentifier type, DerValue val)
public ObjectIdentifier getObjectIdentifier()
public 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(DerOutputStream out) throws java.io.IOException
java.io.IOExceptionpublic void derEncode(java.io.OutputStream out)
throws java.io.IOException
DerEncoder interface.derEncode in interface DerEncoderout - the output stream on which to write the DER encoding.java.io.IOException - on encoding error.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()
Copyright © 2020. All Rights Reserved.