object LdapDN extends Serializable
- Source
- LdapDN.scala
- Alphabetic
- By Inheritance
- LdapDN
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- 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.
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val codec: Codec[LdapDN]
- val codecInner: Codec[LdapDN]
- 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.
- 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.
- 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.
- 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.
- 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.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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.
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val slashEscapable: Set[Char]
- val slashEscaped: Set[Char]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()