hudson.security
Class HudsonPrivateSecurityRealm.Details

java.lang.Object
  extended by hudson.model.UserProperty
      extended by hudson.security.HudsonPrivateSecurityRealm.Details
All Implemented Interfaces:
ExtensionPoint, Describable<UserProperty>, ReconfigurableDescribable<UserProperty>, InvalidatableUserDetails, Serializable, org.acegisecurity.userdetails.UserDetails
Enclosing class:
HudsonPrivateSecurityRealm

public static final class HudsonPrivateSecurityRealm.Details
extends UserProperty
implements InvalidatableUserDetails

UserProperty that provides the UserDetails view of the User object.

When a User object has this property on it, it means the user is configured for log-in.

When a User object is re-configured via the UI, the password is sent to the hidden input field by using Protector, so that the same password can be retained but without leaking information to the browser.

See Also:
Serialized Form

Nested Class Summary
static class HudsonPrivateSecurityRealm.Details.ConverterImpl
           
static class HudsonPrivateSecurityRealm.Details.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.model.UserProperty
user
 
Method Summary
 org.acegisecurity.GrantedAuthority[] getAuthorities()
           
 String getPassword()
           
 String getProtectedPassword()
           
 String getUsername()
           
 boolean isAccountNonExpired()
           
 boolean isAccountNonLocked()
           
 boolean isCredentialsNonExpired()
           
 boolean isEnabled()
           
 boolean isInvalid()
           
 boolean isPasswordCorrect(String candidate)
           
 
Methods inherited from class hudson.model.UserProperty
all, getDescriptor, reconfigure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAuthorities

public org.acegisecurity.GrantedAuthority[] getAuthorities()
Specified by:
getAuthorities in interface org.acegisecurity.userdetails.UserDetails

getPassword

public String getPassword()
Specified by:
getPassword in interface org.acegisecurity.userdetails.UserDetails

isPasswordCorrect

public boolean isPasswordCorrect(String candidate)

getProtectedPassword

public String getProtectedPassword()

getUsername

public String getUsername()
Specified by:
getUsername in interface org.acegisecurity.userdetails.UserDetails

isAccountNonExpired

public boolean isAccountNonExpired()
Specified by:
isAccountNonExpired in interface org.acegisecurity.userdetails.UserDetails

isAccountNonLocked

public boolean isAccountNonLocked()
Specified by:
isAccountNonLocked in interface org.acegisecurity.userdetails.UserDetails

isCredentialsNonExpired

public boolean isCredentialsNonExpired()
Specified by:
isCredentialsNonExpired in interface org.acegisecurity.userdetails.UserDetails

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface org.acegisecurity.userdetails.UserDetails

isInvalid

public boolean isInvalid()
Specified by:
isInvalid in interface InvalidatableUserDetails


Copyright © 2004-2013. All Rights Reserved.