Class AuthenticationRequest


  • public class AuthenticationRequest
    extends java.lang.Object
    Contains the data required to perform an ldap authentication.
    Author:
    Middleware Services
    • Constructor Detail

      • AuthenticationRequest

        public AuthenticationRequest()
        Default constructor.
      • AuthenticationRequest

        public AuthenticationRequest​(java.lang.String id,
                                     Credential c)
        Creates a new authentication request.
        Parameters:
        id - that identifies the user
        c - credential to authenticate the user
      • AuthenticationRequest

        public AuthenticationRequest​(java.lang.String id,
                                     Credential c,
                                     java.lang.String... attrs)
        Creates a new authentication request.
        Parameters:
        id - that identifies the user
        c - credential to authenticate the user
        attrs - attributes to return
      • AuthenticationRequest

        public AuthenticationRequest​(User u,
                                     Credential c)
        Creates a new authentication request.
        Parameters:
        u - that identifies the user
        c - credential to authenticate the user
      • AuthenticationRequest

        public AuthenticationRequest​(User u,
                                     Credential c,
                                     java.lang.String... attrs)
        Creates a new authentication request.
        Parameters:
        u - that identifies the user
        c - credential to authenticate the user
        attrs - attributes to return
    • Method Detail

      • getUser

        public User getUser()
        Returns the user.
        Returns:
        user identifier
      • setUser

        public void setUser​(User u)
        Sets the user.
        Parameters:
        u - user
      • getCredential

        public Credential getCredential()
        Returns the credential.
        Returns:
        user credential
      • setCredential

        public void setCredential​(Credential c)
        Sets the credential.
        Parameters:
        c - user credential
      • getReturnAttributes

        public java.lang.String[] getReturnAttributes()
        Returns the return attributes.
        Returns:
        attributes to return
      • setReturnAttributes

        public void setReturnAttributes​(java.lang.String... attrs)
        Sets the return attributes.
        Parameters:
        attrs - return attributes
      • getControls

        public RequestControl[] getControls()
        Returns the controls.
        Returns:
        controls
      • setControls

        public void setControls​(RequestControl... cntrls)
        Sets the controls.
        Parameters:
        cntrls - controls to set
      • copy

        public static AuthenticationRequest copy​(AuthenticationRequest request)
        Returns an authentication request initialized with the supplied request.
        Parameters:
        request - authentication request to read properties from
        Returns:
        authentication request
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object