Class AuthenticatedUserContext

  • All Implemented Interfaces:
    org.forgerock.services.context.Context

    public final class AuthenticatedUserContext
    extends org.forgerock.services.context.AbstractContext
    A Context containing a cached LDAP Entry which represents the current authenticated user. This Context implementation does not support serialization. FIXME: This class should be merged with LdapClientContext once the Entry API will have been migrated to the SDK (i.e when OPENDJ-3106 will be resolved).
    • Field Summary

      • Fields inherited from class org.forgerock.services.context.AbstractContext

        data
    • Constructor Summary

      Constructors 
      Constructor Description
      AuthenticatedUserContext​(org.forgerock.services.context.Context parent, Entry authenticatedUser)
      Creates a new authenticated user context with the provided parent context and the provided LDAP entry.
    • Constructor Detail

      • AuthenticatedUserContext

        public AuthenticatedUserContext​(org.forgerock.services.context.Context parent,
                                        Entry authenticatedUser)
        Creates a new authenticated user context with the provided parent context and the provided LDAP entry.
        Parameters:
        parent - The parent Context.
        authenticatedUser - An LDAP Entry representing the authenticated user.
    • Method Detail

      • getAuthenticatedUser

        public Entry getAuthenticatedUser()
        Returns the LDAP entry which represents the authenticated user.
        Returns:
        An LDAP Entry represents the authenticated user.