public final class AuthenticatedConnectionContext extends org.forgerock.services.context.AbstractContext
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.services.context.Context parent,
Connection connection)
Creates a new pre-authenticated cached LDAP connection context having the
provided parent and an ID automatically generated using
UUID.randomUUID() . |
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection()
Returns the cached pre-authenticated LDAP connection which should be
re-used for subsequent LDAP operations.
|
public AuthenticatedConnectionContext(org.forgerock.services.context.Context parent, 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 Connection getConnection()
Copyright 2010-2017 ForgeRock AS.