Package hudson.plugins.active_directory
Class ActiveDirectoryUserDetail
java.lang.Object
org.springframework.security.core.userdetails.User
hudson.plugins.active_directory.ActiveDirectoryUserDetail
- All Implemented Interfaces:
Serializable,org.springframework.security.core.CredentialsContainer,org.springframework.security.core.userdetails.UserDetails
public class ActiveDirectoryUserDetail
extends org.springframework.security.core.userdetails.User
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.security.core.userdetails.User
org.springframework.security.core.userdetails.User.UserBuilder -
Constructor Summary
ConstructorsConstructorDescriptionActiveDirectoryUserDetail(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String displayName, String mail, String telephoneNumber) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the correspondingUserobject.getMail()static longinthashCode()toString()protected voidupdatePasswordInJenkinsInternalDatabase(String username, String password) Update the the password for the specifiedUserin the Jenkins Internal User Databaseorg.springframework.security.core.userdetails.UserDetailsUse the information to update theUserobject.Methods inherited from class org.springframework.security.core.userdetails.User
builder, eraseCredentials, getAuthorities, getPassword, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, withDefaultPasswordEncoder, withUserDetails, withUsername
-
Constructor Details
-
ActiveDirectoryUserDetail
public ActiveDirectoryUserDetail(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String displayName, String mail, String telephoneNumber) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
-
Method Details
-
getDisplayName
-
getMail
-
getTelephoneNumber
-
toString
- Overrides:
toStringin classorg.springframework.security.core.userdetails.User
-
equals
- Overrides:
equalsin classorg.springframework.security.core.userdetails.User
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.springframework.security.core.userdetails.User
-
getSerialVersionUID
public static long getSerialVersionUID() -
getJenkinsUser
Gets the correspondingUserobject. -
updateUserInfo
public org.springframework.security.core.userdetails.UserDetails updateUserInfo()Use the information to update theUserobject.- Returns:
- this
-
updatePasswordInJenkinsInternalDatabase
Update the the password for the specifiedUserin the Jenkins Internal User Database
-