Class X509DnDecoder

java.lang.Object
org.ldaptive.ssl.X509DnDecoder
All Implemented Interfaces:
Function<DERBuffer,Dn>

public class X509DnDecoder extends Object implements Function<DERBuffer,Dn>
Utility class for decoding the DER data in an X509 DN.
  • Field Details

    • RDN_PATH

      private static final DERPath RDN_PATH
      DER path for RDN parsing.
    • ASSERTION_PATH

      private static final DERPath ASSERTION_PATH
      DER path for parsing attribute value assertion.
  • Constructor Details

    • X509DnDecoder

      public X509DnDecoder()
  • Method Details

    • apply

      public Dn apply(DERBuffer encoded)
      Specified by:
      apply in interface Function<DERBuffer,Dn>
    • decode

      private static List<NameValue> decode(DERBuffer encoded)
      Converts bytes in the buffer to attribute value assertions 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 oid and the limit is set beyond the last byte of attribute value data.
      Returns:
      decoded bytes as attribute value assertions