Package | Description |
---|---|
org.forgerock.opendj.ldap |
Classes and interfaces for core types including connections, entries, and
attributes.
|
org.forgerock.opendj.rest2ldap |
APIs for implementing REST to LDAP gateways.
|
org.forgerock.opendj.rest2ldap.authz |
This package contains
Filter to authenticate and authorize LDAP connections. |
org.opends.server.protocols.http |
Contains the implementation for the Directory Server connection handler that
is responsible for interacting with clients using HTTP.
|
org.opends.server.types |
Contains implementations for a number of Directory Server data
types.
|
Modifier and Type | Method and Description |
---|---|
static Function<ByteString,AttributeDescription,NeverThrowsException> |
Functions.byteStringToAttributeDescription()
Returns a function which parses
AttributeDescription s using the
default schema. |
static Function<ByteString,AttributeDescription,NeverThrowsException> |
Functions.byteStringToAttributeDescription(Schema schema)
Returns a function which parses
AttributeDescription s using the
provided schema. |
static Function<ByteString,Boolean,NeverThrowsException> |
Functions.byteStringToBoolean()
Returns a function which parses
Boolean values. |
static Function<ByteString,DN,NeverThrowsException> |
Functions.byteStringToDN()
Returns a function which parses
DN s using the default schema. |
static Function<ByteString,DN,NeverThrowsException> |
Functions.byteStringToDN(Schema schema)
Returns a function which parses
DN s using the provided schema. |
static Function<ByteString,GeneralizedTime,NeverThrowsException> |
Functions.byteStringToGeneralizedTime()
Returns a function which parses generalized time strings.
|
static Function<ByteString,Integer,NeverThrowsException> |
Functions.byteStringToInteger()
Returns a function which parses
Integer string values. |
static Function<ByteString,Long,NeverThrowsException> |
Functions.byteStringToLong()
Returns a function which parses
Long string values. |
static Function<ByteString,String,NeverThrowsException> |
Functions.byteStringToString()
Returns a function which parses a
ByteString as a UTF-8 encoded
String . |
static <M,X,N> Function<M,N,NeverThrowsException> |
Functions.compose(Function<M,X,NeverThrowsException> first,
Function<X,N,NeverThrowsException> second)
Returns the composition of two functions.
|
static <M> Function<M,M,NeverThrowsException> |
Functions.identityFunction()
Returns a function which always returns the value that it was provided
with.
|
static Function<String,String,NeverThrowsException> |
Functions.normalizeString()
Returns a function which converts a
String to lower case using
StaticUtils.toLowerCase(org.forgerock.opendj.ldap.ByteSequence, java.lang.StringBuilder) and then trims it. |
static Function<Object,ByteString,NeverThrowsException> |
Functions.objectToByteString()
Returns a function which converts an
Object to a
ByteString using the ByteString.valueOfObject(Object) method. |
static <M,N> Function<M,N,NeverThrowsException> |
Functions.returns(N constant)
Creates a function that returns constant value for any input.
|
static Function<String,AttributeDescription,NeverThrowsException> |
Functions.stringToAttributeDescription()
Returns a function which parses
AttributeDescription s using the
default schema. |
static Function<String,AttributeDescription,NeverThrowsException> |
Functions.stringToAttributeDescription(Schema schema)
Returns a function which parses
AttributeDescription s using the
provided schema. |
static Function<String,Boolean,NeverThrowsException> |
Functions.stringToBoolean()
Returns a function which parses
Boolean values. |
static Function<String,DN,NeverThrowsException> |
Functions.stringToDN()
Returns a function which parses
DN s using the default schema. |
static Function<String,DN,NeverThrowsException> |
Functions.stringToDN(Schema schema)
Returns a function which parses
DN s using the provided schema. |
static Function<String,GeneralizedTime,NeverThrowsException> |
Functions.stringToGeneralizedTime()
Returns a function which parses generalized time strings.
|
static Function<String,Integer,NeverThrowsException> |
Functions.stringToInteger()
Returns a function which parses
Integer string values. |
static Function<String,Long,NeverThrowsException> |
Functions.stringToLong()
Returns a function which parses
Long string values. |
Modifier and Type | Method and Description |
---|---|
<T> T |
AttributeParser.as(Function<ByteString,? extends T,NeverThrowsException> f)
Returns the first value decoded as a
T using the provided
Function , or null if the attribute does not contain any
values. |
<T> T |
AttributeParser.as(Function<ByteString,? extends T,NeverThrowsException> 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> Set<T> |
AttributeParser.asSetOf(Function<ByteString,? extends T,NeverThrowsException> 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> Set<T> |
AttributeParser.asSetOf(Function<ByteString,? extends T,NeverThrowsException> 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. |
static <M,X,N> Function<M,N,NeverThrowsException> |
Functions.compose(Function<M,X,NeverThrowsException> first,
Function<X,N,NeverThrowsException> second)
Returns the composition of two functions.
|
static <M,X,N> Function<M,N,NeverThrowsException> |
Functions.compose(Function<M,X,NeverThrowsException> first,
Function<X,N,NeverThrowsException> second)
Returns the composition of two functions.
|
Modifier and Type | Method and Description |
---|---|
Promise<org.forgerock.http.protocol.Response,NeverThrowsException> |
ErrorLoggerFilter.filter(org.forgerock.services.context.Context context,
org.forgerock.http.protocol.Request request,
org.forgerock.http.Handler next) |
Modifier and Type | Method and Description |
---|---|
SimplePropertyMapper |
SimplePropertyMapper.decoder(Function<ByteString,?,NeverThrowsException> f)
Sets the decoder which will be used for converting LDAP attribute values
to JSON values.
|
SimplePropertyMapper |
SimplePropertyMapper.encoder(Function<Object,ByteString,NeverThrowsException> f)
Sets the encoder which will be used for converting JSON values to LDAP
attribute values.
|
protected ConditionalFilters.ConditionalFilter |
Rest2LdapHttpApplication.newBasicAuthenticationFilter(AuthenticationStrategy authenticationStrategy,
Function<org.forgerock.http.protocol.Headers,Pair<String,String>,NeverThrowsException> credentialsExtractor)
Gets a
Filter in charge of performing the HTTP-Basic Authentication. |
Modifier and Type | Method and Description |
---|---|
static Function<org.forgerock.http.protocol.Headers,Pair<String,String>,NeverThrowsException> |
CredentialExtractors.httpBasicExtractor()
Creates a function which extracts the user's credentials from the standard HTTP Basic header.
|
static Function<org.forgerock.http.protocol.Headers,Pair<String,String>,NeverThrowsException> |
CredentialExtractors.newCustomHeaderExtractor(String customHeaderUsername,
String customHeaderPassword)
Creates a function which extracts the user's credentials from custom HTTP header in addition of the standard HTTP
Basic one.
|
Modifier and Type | Method and Description |
---|---|
static ConditionalFilters.ConditionalFilter |
Authorization.newConditionalHttpBasicAuthenticationFilter(AuthenticationStrategy authenticationStrategy,
Function<org.forgerock.http.protocol.Headers,Pair<String,String>,NeverThrowsException> credentialsExtractor)
Creates a new
ConditionalFilters.ConditionalFilter performing authentication. |
Modifier and Type | Method and Description |
---|---|
Promise<org.forgerock.http.protocol.Response,NeverThrowsException> |
CommonAuditHttpAccessAuditFilter.filter(org.forgerock.services.context.Context context,
org.forgerock.http.protocol.Request request,
org.forgerock.http.Handler next) |
Modifier and Type | Method and Description |
---|---|
<T> T |
AttributeParser.as(Function<ByteString,? extends T,NeverThrowsException> f)
Returns the first value decoded as a
T using the provided
Function , or null if the attribute does not contain any
values. |
<T> T |
AttributeParser.as(Function<ByteString,? extends T,NeverThrowsException> 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> Set<T> |
AttributeParser.asSetOf(Function<ByteString,? extends T,NeverThrowsException> 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> Set<T> |
AttributeParser.asSetOf(Function<ByteString,? extends T,NeverThrowsException> 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. |
Copyright 2010-2017 ForgeRock AS.