| Modifier and Type | Method and Description |
|---|---|
int |
DefaultAttribute.add(byte[]... vals)
Adds some values to this attribute.
|
int |
Attribute.add(byte[]... vals)
Adds some values to this attribute.
|
int |
DefaultAttribute.add(String... vals)
Adds some values to this attribute.
|
int |
Attribute.add(String... vals)
Adds some values to this attribute.
|
int |
Attribute.add(Value... val)
Adds some values to this attribute.
|
void |
DefaultAttribute.apply(AttributeType attributeType)
Set the attribute type associated with this EntryAttribute.
|
void |
DefaultModification.apply(AttributeType attributeType)
Apply the AttributeType to the Modification
|
void |
Attribute.apply(AttributeType attributeType)
Set the attribute type associated with this EntryAttribute.
|
void |
Modification.apply(AttributeType attributeType)
Apply the AttributeType to the Modification
|
protected void |
DefaultEntry.createAttribute(String upId,
AttributeType attributeType,
byte[]... values)
Add a new EntryAttribute, with its upId.
|
protected void |
DefaultEntry.createAttribute(String upId,
AttributeType attributeType,
String... values)
Add a new EntryAttribute, with its upId.
|
protected void |
DefaultEntry.createAttribute(String upId,
AttributeType attributeType,
Value... values)
Add a new EntryAttribute, with its upId.
|
private Value |
DefaultAttribute.createBinaryValue(AttributeType attributeType,
byte[] value) |
private Entry |
DefaultEntry.createEntry(SchemaManager schemaManager,
Object... elements) |
int |
Value.deserialize(byte[] buffer,
int pos)
Deserialize a StringValue from a byte[], starting at a given position
|
byte[] |
DefaultAttribute.getBytes()
Get the byte[] value, if and only if the value is known to be Binary,
otherwise a InvalidAttributeValueException will be thrown
Note that this method returns the first value only.
|
byte[] |
Attribute.getBytes()
Get the byte[] value, if and only if the value is known to be Binary,
otherwise a InvalidAttributeValueException will be thrown
Note that this method returns the first value only.
|
String |
DefaultAttribute.getString()
Get the String value, if and only if the value is known to be a String,
otherwise a InvalidAttributeValueException will be thrown
Note that this method returns the first value only.
|
String |
Attribute.getString()
Get the String value, if and only if the value is known to be a String,
otherwise a InvalidAttributeValueException will be thrown
Note that this method returns the first value only.
|
boolean |
DefaultAttribute.isInstanceOf(AttributeType attributeType)
Check if the current attribute type has the same type (or is a descendant of)
than the given attributeType
|
boolean |
Attribute.isInstanceOf(AttributeType attributeType)
Check if the current attribute type has the same type (or is a descendant of)
than the given attributeType
|
boolean |
DefaultAttribute.isValid(AttributeType attributeType)
Checks to see if this attribute is valid along with the values it contains.
|
boolean |
Attribute.isValid(AttributeType attributeType)
Checks to see if this attribute is valid along with the values it contains.
|
boolean |
Value.isValid(SyntaxChecker syntaxChecker)
Uses the syntaxChecker associated with the attributeType to check if the
value is valid.
|
static Attribute |
AttributeUtils.toApiAttribute(Attribute jndiAttribute)
Convert a JNDI Attribute to an LDAP API Attribute
|
| Constructor and Description |
|---|
DefaultAttribute(AttributeType attributeType,
byte[]... vals)
Create a new instance of a schema aware Attribute, with some byte[] values.
|
DefaultAttribute(AttributeType attributeType,
String... vals)
Create a new instance of a schema aware Attribute, without ID but with some values.
|
DefaultAttribute(AttributeType attributeType,
Value... vals)
Create a new instance of a schema aware Attribute, with some values.
|
DefaultAttribute(String upId,
AttributeType attributeType,
byte[]... vals)
Create a new instance of a schema aware Attribute, with some byte[] values, and
a user provided ID.
|
DefaultAttribute(String upId,
AttributeType attributeType,
String... vals)
Create a new instance of a schema aware Attribute, with some values, and a user provided ID.
|
DefaultAttribute(String upId,
AttributeType attributeType,
Value... vals)
Create a new instance of a schema aware Attribute, with some values, and a user provided ID.
|
DefaultModification(ModificationOperation operation,
AttributeType attributeType)
Creates a new instance of DefaultModification with no value.
|
DefaultModification(ModificationOperation operation,
AttributeType attributeType,
byte[]... values)
Creates a new instance of DefaultModification.
|
DefaultModification(ModificationOperation operation,
AttributeType attributeType,
String... values)
Creates a new instance of DefaultModification.
|
DefaultModification(ModificationOperation operation,
AttributeType attributeType,
Value... values)
Creates a new instance of DefaultModification.
|
Value(AttributeType attributeType,
byte[] upValue)
Creates a schema aware binary Value with an initial value.
|
Value(AttributeType attributeType,
String upValue)
Creates a schema aware StringValue with an initial user provided String value.
|
Value(AttributeType attributeType,
String upValue,
String normValue)
Creates a schema aware StringValue with an initial user provided String value and
its normalized Value
|
Value(AttributeType attributeType,
Value value)
Creates a Value from an existing Value with an AttributeType
|
| Modifier and Type | Method and Description |
|---|---|
private static Value |
FilterParser.parseAssertionValue(SchemaManager schemaManager,
String attribute,
byte[] filterBytes,
org.apache.directory.api.util.Position pos)
An assertion value :
assertionvalue = valueencoding
valueencoding = 0*(normal / escaped)
normal = UTF1SUBSET / UTFMB
escaped = '\' HEX HEX
HEX = '0'-'9' / 'A'-'F' / 'a'-'f'
UTF1SUBSET = %x01-27 / %x2B-5B / %x5D-7F (Everything but '\0', '*', '(', ')' and '\')
UTFMB = UTF2 / UTF3 / UTF4
UTF0 = %x80-BF
UTF2 = %xC2-DF UTF0
UTF3 = %xE0 %xA0-BF UTF0 / %xE1-EC UTF0 UTF0 / %xED %x80-9F UTF0 / %xEE-EF UTF0 UTF0
UTF4 = %xF0 %x90-BF UTF0 UTF0 / %xF1-F3 UTF0 UTF0 UTF0 / %xF4 %x80-8F UTF0 UTF0
With the specific constraints (RFC 4515):
"The <valueencoding< rule ensures that the entire filter string is a"
"valid UTF-8 string and provides that the octets that represent the"
"ASCII characters "*" (ASCII 0x2a), "(" (ASCII 0x28), ")" (ASCII"
"0x29), "\" (ASCII 0x5c), and NUL (ASCII 0x00) are represented as a"
"backslash "\" (ASCII 0x5c) followed by the two hexadecimal digits"
"representing the value of the encoded octet."
|
| Constructor and Description |
|---|
LdifEntry(Dn dn,
Object... avas)
Creates a LdifEntry using a list of strings representing the Ldif element
|
LdifEntry(String dn,
Object... strings)
Creates a LdifEntry using a list of strings representing the Ldif element
|
| Modifier and Type | Method and Description |
|---|---|
int |
Rdn.deserialize(byte[] buffer,
int pos)
Deserialize a RDN from a byte[], starting at a given position
|
int |
Ava.deserialize(byte[] buffer,
int pos)
Deserialize an AVA from a byte[], starting at a given position
|
| Constructor and Description |
|---|
Rdn(SchemaManager schemaManager,
String upType,
String upValue)
A constructor that constructs a schema aware Rdn from a type and a value.
|
Rdn(String upType,
String upValue)
A constructor that constructs a Rdn from a type and a value.
|
Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.