org.opennms.acl.domain
Class AclUser

java.lang.Object
  extended by org.springframework.security.userdetails.User
      extended by org.opennms.acl.domain.AclUser
All Implemented Interfaces:
Serializable, org.springframework.security.userdetails.UserDetails

public class AclUser
extends org.springframework.security.userdetails.User
implements Serializable

This entity is a ACL application user, extends the User to use authentication and authorization Spring Security infrastructure.

Since:
jdk 1.5.0
Version:
$Id: $
Author:
Massimiliano Dessì (desmax74@yahoo.it)
See Also:
Serialized Form

Constructor Summary
AclUser(String username, String password, boolean isEnabled, org.springframework.security.GrantedAuthority[] authorities, Map<String,?> userInfo)
          Entity that represents an acl application user.
 
Method Summary
 long getId()
          The AclUser's unique identifier
 Map<String,?> getUserInfo()
          The additional custom informations kept in AclUser
 
Methods inherited from class org.springframework.security.userdetails.User
equals, getAuthorities, getPassword, getUsername, hashCode, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, setAuthorities, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AclUser

public AclUser(String username,
               String password,
               boolean isEnabled,
               org.springframework.security.GrantedAuthority[] authorities,
               Map<String,?> userInfo)
Entity that represents an acl application user. Used by Spring Security during authentication. In this constructor you can add additional custom information to AclUser

Parameters:
username - a String object.
password - a String object.
isEnabled - a boolean.
authorities - an array of GrantedAuthority objects.
userInfo - a Map object.
Method Detail

getUserInfo

public Map<String,?> getUserInfo()
The additional custom informations kept in AclUser

Returns:
a Map object.

getId

public long getId()
The AclUser's unique identifier

Returns:
a long.


Copyright © 2011. All Rights Reserved.