com.hack23.cia.web.impl.ui.common
Class CustomUserDetails

Package class diagram package CustomUserDetails
java.lang.Object
  extended by org.springframework.security.core.userdetails.User
      extended by com.hack23.cia.web.impl.ui.common.CustomUserDetails
All Implemented Interfaces:
Serializable, org.springframework.security.core.CredentialsContainer, org.springframework.security.core.userdetails.UserDetails

public final class CustomUserDetails
extends org.springframework.security.core.userdetails.User

The Class CustomUserDetails.

See Also:
Serialized Form

Constructor Summary
CustomUserDetails(String username, Collection<org.springframework.security.core.GrantedAuthority> authorities)
          Instantiates a new custom user details.
 
Method Summary
 boolean equals(Object obj)
           
 String getEmail()
          Gets the email.
 String getName()
          Gets the name.
 int hashCode()
           
 boolean isNewUser()
          Checks if is new user.
 void setEmail(String email)
          Sets the email.
 void setName(String name)
          Sets the name.
 void setNewUser(boolean newUser)
          Sets the new user.
 
Methods inherited from class org.springframework.security.core.userdetails.User
eraseCredentials, getAuthorities, getPassword, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomUserDetails

public CustomUserDetails(String username,
                         Collection<org.springframework.security.core.GrantedAuthority> authorities)
Instantiates a new custom user details.

Parameters:
username - the username
authorities - the authorities
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class org.springframework.security.core.userdetails.User

equals

public boolean equals(Object obj)
Overrides:
equals in class org.springframework.security.core.userdetails.User

getEmail

public String getEmail()
Gets the email.

Returns:
the email

setEmail

public void setEmail(String email)
Sets the email.

Parameters:
email - the new email

isNewUser

public boolean isNewUser()
Checks if is new user.

Returns:
true, if is new user

setNewUser

public void setNewUser(boolean newUser)
Sets the new user.

Parameters:
newUser - the new new user

getName

public String getName()
Gets the name.

Returns:
the name

setName

public void setName(String name)
Sets the name.

Parameters:
name - the new name


Copyright © 2008-2012 www.hack23.com. All Rights Reserved.