Packages

object LdapDN extends Serializable

Source
LdapDN.scala
Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LdapDN
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class AttributeTypeAndValue(tpe: AttributeDescription, value: String) extends Product with Serializable

    An value with its value.

    An value with its value.

    This can bee seen as AttributeValueAssertion but it is string encoded.

    tpe

    The type of the attribute.

    value

    The value of the attribute.

  2. case class RelativeDistinguishedName(attributes: Set[AttributeTypeAndValue]) extends Product with Serializable

    A set of values that distinguish an unique entry.

    A set of values that distinguish an unique entry. Has to be nonempty. *

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. val codec: Codec[LdapDN]
  7. val codecInner: Codec[LdapDN]
  8. def decode(string: String): Attempt[LdapDN]

    Decodes a LDAPDN from an encoded string.

    Decodes a LDAPDN from an encoded string.

    This searches for: Non escaped '+', which denotes the end of an attribute inside current relativeDN.

    • take the current accumulator and try to parse out type and value of the attribute.

    Non escaped ',', which denotes the end of the current relativeDN.

    • take the current accumulator and try to parse out type and value of the attribute.
    string

    The string encoded LDAPDN.

  9. def decodeTypeAndValue(string: String): Attempt[AttributeTypeAndValue]

    Decodes the type and and its value from its string represnetation.

    Decodes the type and and its value from its string represnetation.

    NOTE that if the type is that of AttributeDescription.DottedDecimal form then we do not unescape its values. The value of such attribute is that of the hex of BER encoded value.

    string

    The string that has an attribute and value encoded in it.

  10. def encode(dn: LdapDN): Attempt[String]

    Encodes the provided LDAPDN into a string.

    Encodes the provided LDAPDN into a string. This will only fail in case any of the relativeDNs are empty.

    dn

    The LDAPDN to be encoded.

  11. def encodeRelative(relative: RelativeDistinguishedName): Attempt[String]

    Encodes the provided relativeDN into its string representation.

    Encodes the provided relativeDN into its string representation. This only fails if the relativeDN has no attribute in it.

    relative

    The relativeDN that is to be encoded into a string.

  12. def encodeTypeAndValue(tpeAndValue: AttributeTypeAndValue): String

    Encodes the provided attribute into its string representation.

    Encodes the provided attribute into its string representation.

    If the type of the attribute is that of AttributeDescription.DottedDecimal then the value is expected to be in the hex of the BER encoding. As such there is no escaping done for such value.

    tpeAndValue

    The attribute to be encoded.

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def escapeValue(value: String): String

    Escapes the value of AttributeTypeAndValue, which follows the RFC 4514 section 2.4.

    Escapes the value of AttributeTypeAndValue, which follows the RFC 4514 section 2.4.

    value

    The value that is to be escaped.

  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. val slashEscapable: Set[Char]
  24. val slashEscaped: Set[Char]
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. def unescapeValue(string: String): Attempt[String]

    Unescapes the value of AttributeTypeAndValue, which follows the RFC 4514 section 2.4.

    Unescapes the value of AttributeTypeAndValue, which follows the RFC 4514 section 2.4.

    string

    The value that was escaped according to the RFC

  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped