com.xmlserv.security
Class SecurityManager.AccessRight

java.lang.Object
  |
  +--com.xmlserv.security.SecurityManager.AccessRight
Enclosing class:
SecurityManager

public class SecurityManager.AccessRight
extends java.lang.Object

Abstraction of access to a resource.


Constructor Summary
protected SecurityManager.AccessRight()
          Create empty instance.
protected SecurityManager.AccessRight(SecurityManager.Resource resource, int access)
          Create populated instance.
 
Method Summary
 int getAccess()
          Get access method.
 SecurityManager.Resource getResource()
          Get resource.
protected  void setAccess(int access)
          Set access method.
protected  void setResource(SecurityManager.Resource resource)
          Set resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityManager.AccessRight

protected SecurityManager.AccessRight()
Create empty instance.

SecurityManager.AccessRight

protected SecurityManager.AccessRight(SecurityManager.Resource resource,
                                      int access)
Create populated instance.
Parameters:
resource - The resource.
access - The access method.
Method Detail

setResource

protected void setResource(SecurityManager.Resource resource)
Set resource.
Parameters:
resource - The resource.

getResource

public SecurityManager.Resource getResource()
Get resource.
Returns:
The resource.

setAccess

protected void setAccess(int access)
Set access method.
Parameters:
access - The access method.

getAccess

public int getAccess()
Get access method.
Returns:
Access method.