Package com.erudika.para.server.security
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
ConstructorsConstructorDescriptionLDAPAuthentication(Object principal, Object credentials) Default constructor. -
Method Summary
Methods inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationToken
authenticated, eraseCredentials, getCredentials, getPrincipal, setAuthenticated, toBuilder, unauthenticatedMethods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toString
-
Constructor Details
-
LDAPAuthentication
Default constructor.- Parameters:
principal- an LDAP uidcredentials- password
-
-
Method Details
-
withApp
Attaches the owning application to this authentication instance.- Parameters:
app- theAppto 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
Resolves the LDAP settings for the attached application.- Returns:
- LDAP settings map
-