Package org.ldaptive.asn1
Class RDN
- java.lang.Object
-
- org.ldaptive.asn1.RDN
-
- All Implemented Interfaces:
DEREncoder
@Deprecated public class RDN extends java.lang.Object implements DEREncoder
Deprecated.UseRDnA set of attribute value assertions.- Author:
- Middleware Services
-
-
Constructor Summary
Constructors Constructor Description RDN(java.util.Collection<AttributeValueAssertion> assertions)Deprecated.Creates a new RDN.RDN(AttributeValueAssertion... assertions)Deprecated.Creates a new RDN.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static RDN[]decode(DERBuffer encoded)Deprecated.Converts bytes in the buffer to RDNs by reading from the current position to the limit.byte[]encode()Deprecated.Encode this object into it's DER type.booleanequals(java.lang.Object o)Deprecated.AttributeValueAssertion.ValuegetAttributeValue(java.lang.String oid)Deprecated.Returns a single attribute value for the supplied oid.<T> TgetAttributeValue(java.lang.String oid, ValueTranscoder<T> transcoder)Deprecated.Returns a single attribute value for the supplied oid.AttributeValueAssertion[]getAttributeValueAssertions()Deprecated.Returns the attribute value assertions in this RDN.AttributeValueAssertion.Value[]getAttributeValues(java.lang.String oid)Deprecated.Returns the attribute values for the supplied oid.<T> T[]getAttributeValues(java.lang.String oid, ValueTranscoder<T> transcoder)Deprecated.Returns the attribute values decoded by the supplied transcoder.inthashCode()Deprecated.java.lang.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
RDN
public RDN(java.util.Collection<AttributeValueAssertion> assertions)
Deprecated.Creates a new RDN.- Parameters:
assertions- in this RDN
-
RDN
public RDN(AttributeValueAssertion... assertions)
Deprecated.Creates a new RDN.- Parameters:
assertions- in this RDN
-
-
Method Detail
-
getAttributeValueAssertions
public AttributeValueAssertion[] getAttributeValueAssertions()
Deprecated.Returns the attribute value assertions in this RDN.- Returns:
- attribute value assertions
-
getAttributeValues
public AttributeValueAssertion.Value[] getAttributeValues(java.lang.String oid)
Deprecated.Returns the attribute values for the supplied oid.- Parameters:
oid- to match- Returns:
- attribute values
-
getAttributeValue
public AttributeValueAssertion.Value getAttributeValue(java.lang.String oid)
Deprecated.Returns a single attribute value for the supplied oid. SeegetAttributeValues(String).- Parameters:
oid- to match- Returns:
- attribute value
-
getAttributeValues
public <T> T[] getAttributeValues(java.lang.String oid, ValueTranscoder<T> transcoder)Deprecated.Returns the attribute values decoded by the supplied transcoder.- Type Parameters:
T- type of value- Parameters:
oid- to matchtranscoder- to decode the binary value- Returns:
- decoded attribute values
-
getAttributeValue
public <T> T getAttributeValue(java.lang.String oid, ValueTranscoder<T> transcoder)Deprecated.Returns a single attribute value for the supplied oid. SeegetAttributeValues(String, ValueTranscoder).- Type Parameters:
T- type of value- Parameters:
oid- to matchtranscoder- to decode the binary value- Returns:
- decoded attribute value
-
encode
public byte[] encode()
Deprecated.Description copied from interface:DEREncoderEncode this object into it's DER type.- Specified by:
encodein interfaceDEREncoder- Returns:
- DER encoded object
-
decode
public static RDN[] decode(DERBuffer encoded)
Deprecated.Converts bytes in the buffer to RDNs by reading from the current position to the limit.- Parameters:
encoded- buffer containing DER-encoded data where the buffer is positioned at the tag of the RDN and the limit is set beyond the last byte of the RDN.- Returns:
- decoded bytes as RDNs
-
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-