net.sourceforge.heracles.acegi
Class HeraclesUserDetails

java.lang.Object
  extended by net.sourceforge.heracles.acegi.HeraclesUserDetails
All Implemented Interfaces:
java.io.Serializable, org.acegisecurity.userdetails.UserDetails

public class HeraclesUserDetails
extends java.lang.Object
implements org.acegisecurity.userdetails.UserDetails

Title: HeraclesUserDetails.java
Description: This Class is needed by the HeraclesAuthenticationProvider for ACEGI
Java Version: JDK 1.5

Author:
Philipp Gantert version 1.0
See Also:
Serialized Form

Field Summary
private  boolean accountNonExpired
           
private  boolean accountNonLocked
           
private  org.acegisecurity.GrantedAuthority[] authorities
           
private  boolean credentialsNonExpired
           
private  boolean enabled
           
private  LdapUser ldapUser
           
private  org.apache.log4j.Logger logger
           
private  java.lang.String password
           
private  java.lang.String username
           
 
Constructor Summary
HeraclesUserDetails(java.lang.String username, java.lang.String password, boolean accountNonLocked, boolean credentialsNonExpired, boolean enabled, org.acegisecurity.GrantedAuthority[] authorities, LdapUser ldapUser)
          Constructor stes the attribute accountNunExpired always on true
 
Method Summary
 org.acegisecurity.GrantedAuthority[] getAuthorities()
           
 LdapUser getLdapUser()
           
 java.lang.String getPassword()
           
 java.lang.String getUsername()
           
 boolean isAccountNonExpired()
           
 boolean isAccountNonLocked()
           
 boolean isCredentialsNonExpired()
           
 boolean isEnabled()
           
 void setLdapUser(LdapUser ldapUser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

password

private java.lang.String password

username

private java.lang.String username

ldapUser

private LdapUser ldapUser

accountNonExpired

private boolean accountNonExpired

accountNonLocked

private boolean accountNonLocked

credentialsNonExpired

private boolean credentialsNonExpired

enabled

private boolean enabled

authorities

private org.acegisecurity.GrantedAuthority[] authorities

logger

private org.apache.log4j.Logger logger
Constructor Detail

HeraclesUserDetails

public HeraclesUserDetails(java.lang.String username,
                           java.lang.String password,
                           boolean accountNonLocked,
                           boolean credentialsNonExpired,
                           boolean enabled,
                           org.acegisecurity.GrantedAuthority[] authorities,
                           LdapUser ldapUser)
Constructor stes the attribute accountNunExpired always on true

Parameters:
username -
password -
accountNonLocked -
credentialsNonExpired -
enabled -
authorities -
Method Detail

getAuthorities

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

getPassword

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

getUsername

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

isAccountNonExpired

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

isAccountNonLocked

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

isCredentialsNonExpired

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

isEnabled

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

getLdapUser

public LdapUser getLdapUser()
Returns:
the ldapUser

setLdapUser

public void setLdapUser(LdapUser ldapUser)
Parameters:
ldapUser - the ldapUser to set


Copyright © 2007 null. All Rights Reserved.