edu.vt.middleware.crypt.x509.types
Class AttributeTypeAndValue

java.lang.Object
  extended by edu.vt.middleware.crypt.x509.types.AttributeTypeAndValue

public class AttributeTypeAndValue
extends Object

Representation of AttributeTypeAndValue type described in section 2 of RFC 2253. This type is used to represent the RelativeDistinguishedName types that comprise the RDN sequence describing an LDAPv3 distinguished name (DN).

Version:
$Revision: 587 $
Author:
Middleware Services

Field Summary
static char ESCAPE_CHAR
          Escape character.
static Set<Character> ESCAPE_CHARSET
          Set of characters in the value that MUST be escaped in the string representation.
 
Constructor Summary
AttributeTypeAndValue(AttributeType attributeType, String attributeValue)
          Creates a new instance with the given well-known attribute type and value.
AttributeTypeAndValue(String typeOid, String attributeValue)
          Creates a new instance with the given type OID and value.
 
Method Summary
 boolean equals(Object obj)
          
 String getType()
           
 String getValue()
           
 int hashCode()
          
 String toString()
          Follows the guidelines of RFC 2253 section 2.3 for producing the string representation of the AttributeTypeAndValue type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ESCAPE_CHARSET

public static final Set<Character> ESCAPE_CHARSET
Set of characters in the value that MUST be escaped in the string representation.


ESCAPE_CHAR

public static final char ESCAPE_CHAR
Escape character.

See Also:
Constant Field Values
Constructor Detail

AttributeTypeAndValue

public AttributeTypeAndValue(String typeOid,
                             String attributeValue)
Creates a new instance with the given type OID and value.

Parameters:
typeOid - Attribute type OID.
attributeValue - Attribute value.

AttributeTypeAndValue

public AttributeTypeAndValue(AttributeType attributeType,
                             String attributeValue)
Creates a new instance with the given well-known attribute type and value.

Parameters:
attributeType - Attribute type.
attributeValue - Attribute value.
Method Detail

getType

public String getType()
Returns:
Attribute type OID.

getValue

public String getValue()
Returns:
Attribute value.

toString

public String toString()
Follows the guidelines of RFC 2253 section 2.3 for producing the string representation of the AttributeTypeAndValue type.

Overrides:
toString in class Object
Returns:
String representation of RDN.

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright © 2003-2011 Virginia Tech. All Rights Reserved.