org.persvr.security
Class UserSecurity.PriviledgedUser

java.lang.Object
  extended by org.persvr.security.UserSecurity.PriviledgedUser
All Implemented Interfaces:
java.security.acl.Permission, java.security.Principal, Capability, User
Enclosing class:
UserSecurity

public static class UserSecurity.PriviledgedUser
extends java.lang.Object
implements User


Method Summary
 java.lang.String getCurrentTicket()
          Allows a user to return ticket so that the password does not need to be stored for reauthentication This may be moved to a separate interface
 java.lang.String getName()
           
 int getPermissionLevel(Persistable obj)
          Determines whether this capability can access the given object
 User getRealCurrentUser()
           
 PersistableObject getUserData()
           
 void grantCapability(Capability capability)
          Grants a new capability to this capability
 void grantCapability(Persistable persistable)
          Grants a new capability to this capability
 boolean hasPermission(java.security.acl.Permission permision)
          Determines whether this capability has the given system permission
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.acl.Permission
equals, toString
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Method Detail

getRealCurrentUser

public User getRealCurrentUser()

getUserData

public PersistableObject getUserData()

getName

public java.lang.String getName()
Specified by:
getName in interface java.security.Principal

getPermissionLevel

public int getPermissionLevel(Persistable obj)
Description copied from interface: Capability
Determines whether this capability can access the given object

Specified by:
getPermissionLevel in interface Capability
Returns:

grantCapability

public void grantCapability(Capability capability)
Description copied from interface: Capability
Grants a new capability to this capability

Specified by:
grantCapability in interface Capability

grantCapability

public void grantCapability(Persistable persistable)
Description copied from interface: Capability
Grants a new capability to this capability

Specified by:
grantCapability in interface Capability

hasPermission

public boolean hasPermission(java.security.acl.Permission permision)
Description copied from interface: Capability
Determines whether this capability has the given system permission

Specified by:
hasPermission in interface Capability
Returns:

getCurrentTicket

public java.lang.String getCurrentTicket()
Description copied from interface: User
Allows a user to return ticket so that the password does not need to be stored for reauthentication This may be moved to a separate interface

Specified by:
getCurrentTicket in interface User
Returns:
ticket