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:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationToken

    org.springframework.security.authentication.UsernamePasswordAuthenticationToken.Builder<B extends org.springframework.security.authentication.UsernamePasswordAuthenticationToken.Builder<B>>
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    com.erudika.para.core.App
    Gets the application tied to the authentication.
    Resolves the LDAP settings for the attached application.
    withApp(com.erudika.para.core.App app)
    Attaches the owning application to this authentication instance.

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

    authenticated, eraseCredentials, getCredentials, getPrincipal, setAuthenticated, toBuilder, 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(com.erudika.para.core.App app)
      Attaches the owning application to this authentication instance.
      Parameters:
      app - the App to associate
      Returns:
      this authentication for fluent chaining
    • getApp

      public com.erudika.para.core.App getApp()
      Gets the application tied to the authentication.
      Returns:
      the App
    • getLdapSettings

      public Map<String,String> getLdapSettings()
      Resolves the LDAP settings for the attached application.
      Returns:
      LDAP settings map