Package | Description |
---|---|
org.forgerock.opendj.io |
Classes and interfaces providing I/O functionality.
|
org.forgerock.opendj.ldap |
Classes and interfaces for core types including connections, entries, and
attributes.
|
org.forgerock.opendj.ldap.controls |
Classes and interfaces for common LDAP controls.
|
org.forgerock.opendj.ldap.messages |
Classes and interfaces for core LDAP requests/responses.
|
org.forgerock.opendj.ldap.schema |
Classes and interfaces for constructing and querying LDAP schemas.
|
org.forgerock.opendj.ldap.spi |
Interfaces and classes for service providers.
|
Modifier and Type | Method and Description |
---|---|
ByteString |
Asn1Reader.readOctetString()
Reads the next element as an octet string having the Universal Octet
String ASN.1 type tag.
|
ByteString |
Asn1Reader.readOctetString(byte type)
Reads the next element as an octet string having the provided type tag.
|
ByteString |
AbstractAsn1Reader.readOctetString(byte type) |
Modifier and Type | Method and Description |
---|---|
static ByteString[] |
ByteString.asArray(Object... objects)
Returns an array containing the provided objects converted to byte strings using
ByteString.valueOfObject(Object) . |
ByteString |
AttributeParser.asByteString()
Returns the first value, or
null if the attribute does not
contain any values. |
ByteString |
AttributeParser.asByteString(ByteString defaultValue)
Returns the first value, or
defaultValue if the attribute does
not contain any values. |
static ByteString |
Base64.decode(String base64)
Decodes the provided base64 encoded data.
|
static ByteString |
ByteString.empty()
Returns an empty byte string.
|
ByteString |
LinkedAttribute.firstValue() |
ByteString |
Attribute.firstValue()
Returns the first attribute value in this attribute.
|
ByteString |
AbstractAttribute.firstValue() |
ByteString |
Filter.getAssertionValue()
Returns the assertion value for this comparison filter.
|
ByteString |
Ava.getAttributeValue()
Returns the attribute value associated with this AVA.
|
ByteString |
Rdn.getAttributeValue(AttributeType attributeType)
Returns the attribute value contained in this RDN which is associated
with the provided attribute type, or
null if this RDN does not
include such an attribute value. |
ByteString |
Filter.getSubstringsFinal()
Returns the final substring assertion value for this substrings filter, or
null if the substrings filter
did not include an final substring. |
ByteString |
Filter.getSubstringsInitial()
Returns the initial substring assertion value for this substrings filter, or
null if the substrings
filter did not include an initial substring. |
ByteString |
Filter.getUnrecognizedFilterBytes()
Returns the ASN.1 content associated with this unrecognized filter.
|
ByteString |
ByteSequenceReader.readByteString(int length)
Relative bulk read method.
|
ByteString |
ByteString.subSequence(int start,
int end) |
ByteString[] |
Attribute.toArray()
Returns an array containing all of the attribute values contained in this
attribute.
|
ByteString[] |
AbstractAttribute.toArray() |
ByteString |
ByteStringBuilder.toByteString()
Returns the
ByteString representation of this byte string
builder. |
ByteString |
ByteString.toByteString() |
ByteString |
ByteSequence.toByteString()
Returns the
ByteString representation of this byte sequence. |
ByteString |
Dn.toNormalizedByteString()
Retrieves a normalized byte string representation of this DN.
|
static ByteString |
ByteString.valueOfBase64(String s)
Returns a byte string containing the Base64 decoded bytes of the provided
string.
|
static ByteString |
ByteString.valueOfBytes(byte[] bytes)
Returns a byte string containing the contents of the provided byte array.
|
static ByteString |
ByteString.valueOfBytes(byte[] bytes,
int offset,
int length)
Returns a byte string containing a subsequence of the contents of the
provided byte array.
|
static ByteString |
ByteString.valueOfHex(String hexString)
Returns a byte string containing the bytes of the provided hexadecimal string.
|
static ByteString |
ByteString.valueOfInt(int i)
Returns a byte string containing the big-endian encoded bytes of the
provided integer.
|
static ByteString |
ByteString.valueOfLong(long l)
Returns a byte string containing the big-endian encoded bytes of the
provided long.
|
static ByteString |
ByteString.valueOfObject(Object o)
Returns a byte string representation of the provided object.
|
static ByteString |
ByteString.valueOfUtf8(char[] chars)
Returns a byte string containing the UTF-8 encoded bytes of the provided
char array.
|
static ByteString |
ByteString.valueOfUtf8(CharSequence s)
Returns a byte string containing the UTF-8 encoded bytes of the provided
char sequence.
|
static ByteString |
ByteString.wrap(byte[] bytes)
Returns a byte string that wraps the provided byte array.
|
static ByteString |
ByteString.wrap(byte[] bytes,
int offset,
int length)
Returns a byte string that wraps a subsequence of the provided byte
array.
|
Modifier and Type | Method and Description |
---|---|
static List<ByteString> |
ByteString.asList(Object... objects)
Returns a list containing the provided objects converted to byte strings using
ByteString.valueOfObject(Object) . |
Set<ByteString> |
AttributeParser.asSetOfByteString(ByteString... defaultValues)
Returns the values contained in the attribute, or
defaultValues
if the attribute does not contain any values. |
Set<ByteString> |
AttributeParser.asSetOfByteString(Collection<ByteString> defaultValues)
Returns the values contained in the attribute, or
defaultValues
if the attribute does not contain any values. |
static Function<ByteString,Boolean,org.forgerock.i18n.LocalizedIllegalArgumentException> |
Functions.byteStringToBoolean()
Returns a function which parses
Boolean values. |
static Function<ByteString,Dn,org.forgerock.i18n.LocalizedIllegalArgumentException> |
Functions.byteStringToDn()
Returns a function which parses
DN s using the default schema. |
static Function<ByteString,Dn,org.forgerock.i18n.LocalizedIllegalArgumentException> |
Functions.byteStringToDn(Schema schema)
Returns a function which parses
DN s using the provided schema. |
static Function<ByteString,GeneralizedTime,org.forgerock.i18n.LocalizedIllegalArgumentException> |
Functions.byteStringToGeneralizedTime()
Returns a function which parses generalized time strings.
|
static Function<ByteString,Integer,org.forgerock.i18n.LocalizedIllegalArgumentException> |
Functions.byteStringToInteger()
Returns a function which parses
Integer string values. |
static Function<ByteString,Long,org.forgerock.i18n.LocalizedIllegalArgumentException> |
Functions.byteStringToLong()
Returns a function which parses
Long string values. |
List<ByteString> |
Filter.getSubstringsAny()
Returns an unmodifiable list containing any intermediate substring assertion values for this substrings filter,
which may be an empty if the substrings filter did not include an intermediate substrings.
|
Iterator<ByteString> |
LinkedAttribute.iterator() |
Iterator<ByteString> |
Attribute.iterator()
Returns an iterator over the attribute values in this attribute.
|
abstract Iterator<ByteString> |
AbstractAttribute.iterator() |
Modifier and Type | Method and Description |
---|---|
boolean |
LinkedAttribute.add(ByteString value) |
default boolean |
Attribute.add(ByteString value)
Adds
value to this attribute if it is not already present
(optional operation). |
ByteString |
AttributeParser.asByteString(ByteString defaultValue)
Returns the first value, or
defaultValue if the attribute does
not contain any values. |
Set<ByteString> |
AttributeParser.asSetOfByteString(ByteString... defaultValues)
Returns the values contained in the attribute, or
defaultValues
if the attribute does not contain any values. |
static AttributeDescription |
Functions.byteStringToAttributeDescription(ByteString value,
Schema schema)
Parses a
ByteString as an AttributeDescription using the provided schema. |
static X509Certificate |
Functions.byteStringToCertificate(ByteString value)
Parses a
ByteString as a X509Certificate . |
GenericExtendedResult |
Connection.extendedRequest(String requestName,
ByteString requestValue)
Requests that the Directory Server performs the provided extended
request.
|
GenericExtendedResult |
AbstractConnectionWrapper.extendedRequest(String requestName,
ByteString requestValue)
Requests that the Directory Server performs the provided extended
request.
|
GenericExtendedResult |
AbstractConnection.extendedRequest(String requestName,
ByteString requestValue) |
static Filter |
Filter.unrecognized(byte filterTag,
ByteString filterBytes)
Creates a new
unrecognized filter using the provided ASN1 filter
tag and content. |
static Dn |
Dn.valueOf(ByteString dn)
Parses the provided LDAP string representation of a DN using the default schema.
|
Modifier and Type | Method and Description |
---|---|
default boolean |
Attribute.addAll(Collection<? extends ByteString> values)
Adds all of the attribute values contained in
values to this
attribute if they are not already present (optional operation). |
boolean |
AbstractAttribute.addAll(Collection<? extends ByteString> values) |
boolean |
Entry.addAttribute(Attribute attribute,
Collection<? super ByteString> duplicateValues)
Ensures that this entry contains the provided attribute and values (optional operation).
|
boolean |
Entries.NullEntry.addAttribute(Attribute attribute,
Collection<? super ByteString> duplicateValues) |
boolean |
AbstractMapEntry.addAttribute(Attribute attribute,
Collection<? super ByteString> duplicateValues) |
<T,E extends Exception> |
AttributeParser.as(Function<ByteString,? extends T,E> f)
Returns the first value decoded as a
T using the provided
Function , or null if the attribute does not contain any
values. |
<T,E extends Exception> |
AttributeParser.as(Function<ByteString,? extends T,E> f,
T defaultValue)
Returns the first value decoded as a
T using the provided
Function , or defaultValue if the attribute does not
contain any values. |
<T,E extends Exception> |
AttributeParser.asSetOf(Function<ByteString,? extends T,E> f,
Collection<? extends T> defaultValues)
Returns the values decoded as a set of
T s using the provided
Function , or defaultValues if the attribute does not
contain any values. |
<T,E extends Exception> |
AttributeParser.asSetOf(Function<ByteString,? extends T,E> f,
T... defaultValues)
Returns the values decoded as a set of
T s using the provided
Function , or defaultValues if the attribute does not
contain any values. |
Set<ByteString> |
AttributeParser.asSetOfByteString(Collection<ByteString> defaultValues)
Returns the values contained in the attribute, or
defaultValues
if the attribute does not contain any values. |
default boolean |
Entry.containsAttribute(Attribute attribute,
Collection<? super ByteString> missingValues)
Returns
true if this entry contains all of the attribute values contained in attribute . |
static Entry |
Entries.modifyEntry(Entry entry,
Modification change,
Collection<? super ByteString> conflictingValues)
Applies the provided modification to an entry.
|
default boolean |
Entry.removeAttribute(Attribute attribute,
Collection<? super ByteString> missingValues)
Removes all of the attribute values contained in
attribute from this entry if it is present (optional
operation). |
boolean |
AbstractMapEntry.removeAttribute(Attribute attribute,
Collection<? super ByteString> missingValues) |
Modifier and Type | Method and Description |
---|---|
ByteString |
VirtualListViewRequestControl.getAssertionValue()
Returns the assertion value that will be used to locate the target entry,
if applicable.
|
ByteString |
VirtualListViewResponseControl.getContextId()
Returns a server-defined octet string which, if present, should be sent
back to the server by the client in a subsequent virtual list request.
|
ByteString |
VirtualListViewRequestControl.getContextId()
Returns the context ID provided by the server in the last virtual list
view response for the same set of criteria, or
null if there was
no previous virtual list view response or the server did not include a
context ID in the last response. |
ByteString |
SimplePagedResultsControl.getCookie()
Returns the opaque cookie which is used by the server to track its
position in the set of search results.
|
ByteString |
VirtualListViewResponseControl.getValue() |
ByteString |
VirtualListViewRequestControl.getValue() |
ByteString |
SubtreeDeleteRequestControl.getValue() |
ByteString |
SubentriesRequestControl.getValue() |
ByteString |
SimplePagedResultsControl.getValue() |
ByteString |
ServerSideSortResponseControl.getValue() |
ByteString |
ServerSideSortRequestControl.getValue() |
ByteString |
RelaxRulesRequestControl.getValue() |
ByteString |
ProxiedAuthV2RequestControl.getValue() |
ByteString |
ProxiedAuthV1RequestControl.getValue() |
ByteString |
PreReadResponseControl.getValue() |
ByteString |
PreReadRequestControl.getValue() |
ByteString |
PostReadResponseControl.getValue() |
ByteString |
PostReadRequestControl.getValue() |
ByteString |
PersistentSearchRequestControl.getValue() |
ByteString |
PermissiveModifyRequestControl.getValue() |
ByteString |
PasswordPolicyResponseControl.getValue() |
ByteString |
PasswordPolicyRequestControl.getValue() |
ByteString |
PasswordExpiringResponseControl.getValue() |
ByteString |
PasswordExpiredResponseControl.getValue() |
ByteString |
MatchedValuesRequestControl.getValue() |
ByteString |
ManageDsaItRequestControl.getValue() |
ByteString |
GetEffectiveRightsRequestControl.getValue() |
ByteString |
GenericControl.getValue() |
ByteString |
EntryChangeNotificationResponseControl.getValue() |
ByteString |
Control.getValue()
Returns the value, if any, associated with this control.
|
ByteString |
AuthorizationIdentityResponseControl.getValue() |
ByteString |
AuthorizationIdentityRequestControl.getValue() |
ByteString |
AssertionRequestControl.getValue() |
ByteString |
AdNotificationRequestControl.getValue() |
Modifier and Type | Method and Description |
---|---|
static VirtualListViewRequestControl |
VirtualListViewRequestControl.newAssertionControl(boolean isCritical,
ByteString assertionValue,
int beforeCount,
int afterCount,
ByteString contextId)
Creates a new virtual list view request control that will identify the
target entry by an assertion value.
|
static SimplePagedResultsControl |
SimplePagedResultsControl.newControl(boolean isCritical,
int size,
ByteString cookie)
Creates a new simple paged results control with the provided criticality,
size, and cookie.
|
static VirtualListViewResponseControl |
VirtualListViewResponseControl.newControl(int targetPosition,
int contentCount,
ResultCode result,
ByteString contextId)
Creates a new virtual list view response control.
|
static VirtualListViewRequestControl |
VirtualListViewRequestControl.newOffsetControl(boolean isCritical,
int offset,
int contentCount,
int beforeCount,
int afterCount,
ByteString contextId)
Creates a new virtual list view request control that will identify the
target entry by a positional offset within the complete result set.
|
Modifier and Type | Method and Description |
---|---|
ByteString |
CompareRequest.getAssertionValue()
Returns the assertion value to be compared.
|
ByteString |
UnknownRequest.getRawProtocolOp()
Returns the unparsed protocol-op bytes.
|
ByteString |
BindResult.getServerSaslCredentials()
Returns the server SASL credentials associated with this bind result.
|
ByteString |
PasswordModifyExtendedRequest.getUserIdentity()
Returns the identity of the user whose password is to be modified, or
null if the request should be applied to the user currently
associated with the session. |
ByteString |
WhoAmIExtendedResult.getValue() |
ByteString |
WhoAmIExtendedRequest.getValue() |
ByteString |
StartTlsExtendedRequest.getValue() |
ByteString |
PasswordModifyExtendedResult.getValue() |
ByteString |
PasswordModifyExtendedRequest.getValue() |
ByteString |
IntermediateResponse.getValue()
Returns the value, if any, associated with this intermediate response.
|
ByteString |
GenericIntermediateResponse.getValue() |
ByteString |
GenericExtendedResult.getValue() |
ByteString |
GenericExtendedRequest.getValue() |
ByteString |
ExtendedResult.getValue()
Returns the value, if any, associated with this extended result.
|
ByteString |
ExtendedRequest.getValue()
Returns the value, if any, associated with this extended request.
|
ByteString |
CancelExtendedRequest.getValue() |
abstract ByteString |
AbstractIntermediateResponse.getValue() |
abstract ByteString |
AbstractExtendedResult.getValue() |
abstract ByteString |
AbstractExtendedRequest.getValue() |
Modifier and Type | Method and Description |
---|---|
static UnknownRequest |
Requests.newUnknownRequest(byte protocolOpType,
ByteString rawContent)
Creates a new unknown request backed by the provided bytes.
|
BindResult |
BindResult.setServerSaslCredentials(ByteString credentials)
Sets the server SASL credentials associated with this bind result.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SearchResultEntry.addAttribute(Attribute attribute,
Collection<? super ByteString> duplicateValues) |
boolean |
AddRequest.addAttribute(Attribute attribute,
Collection<? super ByteString> duplicateValues) |
boolean |
SearchResultEntry.containsAttribute(Attribute attribute,
Collection<? super ByteString> missingValues) |
boolean |
AddRequest.containsAttribute(Attribute attribute,
Collection<? super ByteString> missingValues) |
boolean |
SearchResultEntry.removeAttribute(Attribute attribute,
Collection<? super ByteString> missingValues) |
boolean |
AddRequest.removeAttribute(Attribute attribute,
Collection<? super ByteString> missingValues) |
Modifier and Type | Method and Description |
---|---|
ByteString |
MatchingRule.normalizeAttributeValue(ByteSequence value)
Returns the normalized form of the provided attribute value, which is
best suited for efficiently performing matching operations on that value.
|
ByteString |
MatchingRuleImpl.normalizeAttributeValue(Schema schema,
ByteSequence value)
Retrieves the normalized form of the provided attribute value, which is
best suited for efficiently performing matching operations on that value.
|
Modifier and Type | Method and Description |
---|---|
void |
Indexer.createKeys(Schema schema,
ByteSequence value,
Collection<ByteString> keys)
Generates the set of index keys for an attribute.
|
Copyright © 2010-2018, ForgeRock All Rights Reserved.