public final class AuthenticatedConnectionContext extends org.forgerock.json.resource.Context
Context
containing a cached pre-authenticated LDAP connection which
should be re-used for performing subsequent LDAP operations. The LDAP
connection is typically acquired while perform authentication in an HTTP
servlet filter. It is the responsibility of the component which acquired the
connection to release once processing has completed.Constructor and Description |
---|
AuthenticatedConnectionContext(org.forgerock.json.resource.Context parent,
org.forgerock.opendj.ldap.Connection connection)
Creates a new pre-authenticated cached LDAP connection context having the
provided parent and an ID automatically generated using
UUID.randomUUID() . |
AuthenticatedConnectionContext(String id,
org.forgerock.json.resource.Context parent,
org.forgerock.opendj.ldap.Connection connection)
Creates a new pre-authenticated cached LDAP connection context having the
provided ID and parent.
|
Modifier and Type | Method and Description |
---|---|
protected void |
saveToJson(org.forgerock.json.fluent.JsonValue savedContext,
org.forgerock.json.resource.PersistenceConfig config) |
public AuthenticatedConnectionContext(org.forgerock.json.resource.Context parent, org.forgerock.opendj.ldap.Connection connection)
UUID.randomUUID()
.parent
- The parent context.connection
- The cached pre-authenticated LDAP connection which should be
re-used for subsequent LDAP operations.public AuthenticatedConnectionContext(String id, org.forgerock.json.resource.Context parent, org.forgerock.opendj.ldap.Connection connection)
id
- The context ID.parent
- The parent context.connection
- The cached pre-authenticated LDAP connection which should be
re-used for subsequent LDAP operations.protected void saveToJson(org.forgerock.json.fluent.JsonValue savedContext, org.forgerock.json.resource.PersistenceConfig config) throws org.forgerock.json.resource.ResourceException
saveToJson
in class org.forgerock.json.resource.Context
org.forgerock.json.resource.ResourceException
Copyright © 2011-2015 ForgeRock AS. All Rights Reserved.