Class LDAPAuthenticationProvider.LdapPerson
java.lang.Object
org.springframework.security.ldap.userdetails.LdapUserDetailsImpl
org.springframework.security.ldap.userdetails.Person
org.springframework.security.ldap.userdetails.InetOrgPerson
com.erudika.para.server.security.LDAPAuthenticationProvider.LdapPerson
- All Implemented Interfaces:
Serializable, org.springframework.security.core.CredentialsContainer, org.springframework.security.core.userdetails.UserDetails, org.springframework.security.ldap.ppolicy.PasswordPolicyData, org.springframework.security.ldap.userdetails.LdapUserDetails
- Enclosing class:
LDAPAuthenticationProvider
public static class LDAPAuthenticationProvider.LdapPerson
extends org.springframework.security.ldap.userdetails.InetOrgPerson
Ldap Person override.
- Author:
- Alex Bogdanovski [[email protected]]
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEssence. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getPhoto()Get a person's photo.voidpopulateContext(org.springframework.ldap.core.DirContextAdapter adapter) voidsetPhoto(byte[] photo) Sets photo.Methods inherited from class org.springframework.security.ldap.userdetails.InetOrgPerson
getCarLicense, getDepartmentNumber, getDestinationIndicator, getDisplayName, getEmployeeNumber, getHomePhone, getHomePostalAddress, getInitials, getMail, getMobile, getO, getOu, getPostalAddress, getPostalCode, getRoomNumber, getStreet, getTitle, getUidMethods inherited from class org.springframework.security.ldap.userdetails.Person
getCn, getDescription, getGivenName, getSn, getTelephoneNumberMethods inherited from class org.springframework.security.ldap.userdetails.LdapUserDetailsImpl
equals, eraseCredentials, getAuthorities, getDn, getGraceLoginsRemaining, getPassword, getTimeBeforeExpiration, getUsername, hashCode, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, toString
-
Constructor Details
-
LdapPerson
public LdapPerson()
-
-
Method Details
-
setPhoto
public void setPhoto(byte[] photo) Sets photo.- Parameters:
photo- avatar
-
getPhoto
public byte[] getPhoto()Get a person's photo.- Returns:
- bytes
-
populateContext
public void populateContext(org.springframework.ldap.core.DirContextAdapter adapter)
-