Class LDAPAuthentication

java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.authentication.UsernamePasswordAuthenticationToken
com.erudika.para.server.security.LDAPAuthentication
All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer

public class LDAPAuthentication extends org.springframework.security.authentication.UsernamePasswordAuthenticationToken
Represents a user authentication with LDAP.
Author:
Alex Bogdanovski [[email protected]]
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    LDAPAuthentication(Object principal, Object credentials)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    withApp(App app)
     

    Methods inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationToken

    authenticated, eraseCredentials, getCredentials, getPrincipal, setAuthenticated, unauthenticated

    Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

    equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.security.Principal

    implies
  • Constructor Details

    • LDAPAuthentication

      public LDAPAuthentication(Object principal, Object credentials)
      Default constructor.
      Parameters:
      principal - an LDAP uid
      credentials - password
  • Method Details

    • withApp

      public LDAPAuthentication withApp(App app)
      Parameters:
      app - App
      Returns:
      this
    • getApp

      public App getApp()
      Returns:
      the App
    • getLdapSettings

      public Map<String,String> getLdapSettings()
      Returns:
      LDAP settings map