Package org.apache.harmony.security.x501
Class AttributeValue
- java.lang.Object
-
- org.apache.harmony.security.x501.AttributeValue
-
public final class AttributeValue extends Object
X.501 Attribute Value
-
-
Field Summary
Fields Modifier and Type Field Description byte[]bytesbyte[]encodedStringescapedStringbooleanhasQENStringrawStringbooleanwasEncoded
-
Constructor Summary
Constructors Constructor Description AttributeValue(String parsedString, boolean mustBeOutputWithQuotes, ObjectIdentifier oid)AttributeValue(String hexString, byte[] encoded)AttributeValue(String rawString, byte[] encoded, int tag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendQuotedString(StringBuilder sb)StringgetHexString()StringgetRFC2253String()Removes escape sequences used in RFC1779 escaping but not in RFC2253 and returns the RFC2253 string to the caller..intgetTag()Collection<?>getValues(ASN1Type type)StringmakeCanonical()
-
-
-
Constructor Detail
-
AttributeValue
public AttributeValue(String parsedString, boolean mustBeOutputWithQuotes, ObjectIdentifier oid)
-
AttributeValue
public AttributeValue(String hexString, byte[] encoded)
-
AttributeValue
public AttributeValue(String rawString, byte[] encoded, int tag)
-
-
Method Detail
-
getTag
public int getTag()
-
getHexString
public String getHexString()
-
getValues
public Collection<?> getValues(ASN1Type type) throws IOException
- Throws:
IOException
-
appendQuotedString
public void appendQuotedString(StringBuilder sb)
-
makeCanonical
public String makeCanonical()
-
getRFC2253String
public String getRFC2253String()
Removes escape sequences used in RFC1779 escaping but not in RFC2253 and returns the RFC2253 string to the caller..
-
-