Package hudson.plugins.active_directory
Class ActiveDirectoryUserDetail
- java.lang.Object
-
- org.acegisecurity.userdetails.User
-
- hudson.plugins.active_directory.ActiveDirectoryUserDetail
-
- All Implemented Interfaces:
Serializable
,UserDetails
public class ActiveDirectoryUserDetail extends User
- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActiveDirectoryUserDetail(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, GrantedAuthority[] authorities, String displayName, String mail, String telephoneNumber)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getDisplayName()
User
getJenkinsUser()
Gets the correspondingUser
object.String
getMail()
static long
getSerialVersionUID()
String
getTelephoneNumber()
int
hashCode()
protected void
setAuthorities(GrantedAuthority[] authorities)
String
toString()
protected void
updatePasswordInJenkinsInternalDatabase(String username, String password)
Update the the password for the specifiedUser
in the Jenkins Internal User DatabaseUserDetails
updateUserInfo()
Use the information to update theUser
object.-
Methods inherited from class org.acegisecurity.userdetails.User
getAuthorities, getPassword, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.acegisecurity.userdetails.UserDetails
toSpring
-
-
-
-
Constructor Detail
-
ActiveDirectoryUserDetail
public ActiveDirectoryUserDetail(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, GrantedAuthority[] authorities, String displayName, String mail, String telephoneNumber) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
-
getMail
public String getMail()
-
getTelephoneNumber
public String getTelephoneNumber()
-
setAuthorities
protected void setAuthorities(GrantedAuthority[] authorities)
- Overrides:
setAuthorities
in classUser
-
getSerialVersionUID
public static long getSerialVersionUID()
-
updateUserInfo
public UserDetails updateUserInfo()
Use the information to update theUser
object.- Returns:
- this
-
-