Object/Class

spinoco.protocol.ldap.elements

LdapDN

Related Docs: class LdapDN | package elements

Permalink

object LdapDN extends Serializable

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

Type Members

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

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val codec: Codec[LdapDN]

    Permalink
  7. val codecInner: Codec[LdapDN]

    Permalink
  8. def decode(string: String): Attempt[LdapDN]

    Permalink

    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]

    Permalink

    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]

    Permalink

    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]

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def escapeValue(value: String): String

    Permalink

    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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. val slashEscapable: Set[Char]

    Permalink
  24. val slashEscaped: Set[Char]

    Permalink
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. def unescapeValue(string: String): Attempt[String]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped