Class LDAPAuthentication
java.lang.Object
com.erudika.para.server.security.LDAPAuthentication
- All Implemented Interfaces:
Serializable, Principal
Represents a user authentication with LDAP.
- Author:
- Alex Bogdanovski [[email protected]]
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLDAPAuthentication(Object principal, Object credentials) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.security.authentication.UsernamePasswordAuthenticationTokenauthenticated(Object arg0, Object arg1, Collection<? extends org.springframework.security.core.GrantedAuthority> arg2) booleanvoidcom.erudika.para.core.AppgetApp()Collection<org.springframework.security.core.GrantedAuthority> getName()inthashCode()booleanvoidsetAuthenticated(boolean arg0) voidsetDetails(Object arg0) toString()static org.springframework.security.authentication.UsernamePasswordAuthenticationTokenunauthenticated(Object arg0, Object arg1) withApp(com.erudika.para.core.App app)
-
Constructor Details
-
LDAPAuthentication
-
-
Method Details
-
withApp
- Parameters:
app-App- Returns:
- this
-
getApp
public com.erudika.para.core.App getApp()- Returns:
- the
App
-
getLdapSettings
-
unauthenticated
-
authenticated
public static org.springframework.security.authentication.UsernamePasswordAuthenticationToken authenticated(Object arg0, Object arg1, Collection<? extends org.springframework.security.core.GrantedAuthority> arg2) -
getCredentials
-
getPrincipal
-
setAuthenticated
- Throws:
IllegalArgumentException
-
eraseCredentials
public void eraseCredentials() -
getAuthorities
-
getName
-
isAuthenticated
public boolean isAuthenticated() -
getDetails
-
setDetails
-
equals
-
hashCode
-
toString
-