|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.security.GenericSecuredObject
public class GenericSecuredObject
A generic implementation of the SecuredObject interface. This version provides storage for the owner and access control list of a secured object and implements access control on the appropriate accessor methods. This is a good base class for building other secured object implementations.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
protected AccessControlList |
mAcl
The access control list assigned to the object. |
protected Persona |
mOwner
The owner of record for the object. |
protected SecurityContext |
mSecurityContext
The security context for the object. |
Constructor Summary | |
---|---|
GenericSecuredObject()
|
Method Summary | |
---|---|
void |
checkAccess(AccessRight pRight)
Ensures that the user has the specified access right for this object. |
void |
checkRuntimeAccess(AccessRight pRight)
Ensures that the user has the specified access right for this object. |
AccessControlList |
getAccessControlList()
Retrieves the access control list associated with this object. |
Persona |
getOwner()
Retrieves the owner of the object, if any. |
SecurityContext |
getSecurityContext()
Returns the security system context information appropriate to this object. |
boolean |
hasAccess(AccessRight pRight)
Determines if the current user has the specified access right for this object. |
void |
setAccessControlList(AccessControlList acl)
Changes the access control list associated with this object. |
void |
setOwner(Persona pPersona)
Changes the owner of the object, if any. |
void |
setSecurityContext(SecurityContext pContext)
Changes the security system context information appropriate to this object. |
boolean |
supportsAccessControlList()
Returns true if this object supports an access control list. |
boolean |
supportsOwner()
Returns true if this object supports an owner. |
AccessControlList |
unsecuredGetAccessControlList()
Returns the access control list stored in this secured object. |
SecuredContainer[] |
unsecuredGetContainers()
Returns the set of containers (parents) that contain or may contain access control information that should be effective when this object is being manipulated. |
Persona |
unsecuredGetOwner()
Returns the persona that has been specified as the owner of the object, or null if none has been specified. |
SecuredContainer[] |
unsecuredGetSecuredContainers()
Returns the set of containers (parents) that contain or may contain access control information that should be effective when this object is being manipulated. |
void |
unsecuredSetAccessControlList(AccessControlList pAcl)
Changes the access control list stored in this object. |
void |
unsecuredSetCreationSecurity()
Sets the object's security to the creation defaults. |
void |
unsecuredSetOwner(Persona pOwner)
Changes the persona that is considered to be the owner of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
protected AccessControlList mAcl
protected Persona mOwner
protected SecurityContext mSecurityContext
Constructor Detail |
---|
public GenericSecuredObject()
Method Detail |
---|
public void checkAccess(AccessRight pRight) throws SecurityException
SecurityException
public void checkRuntimeAccess(AccessRight pRight)
public boolean hasAccess(AccessRight pRight) throws SecurityException
SecurityException
public void setSecurityContext(SecurityContext pContext)
public AccessControlList getAccessControlList() throws SecurityException
getAccessControlList
in interface SecuredObject
SecurityException
public void setAccessControlList(AccessControlList acl) throws SecurityException
setAccessControlList
in interface SecuredObject
SecurityException
public boolean supportsAccessControlList()
supportsAccessControlList
in interface SecuredObject
public Persona getOwner() throws SecurityException
getOwner
in interface SecuredObject
SecurityException
public void setOwner(Persona pPersona) throws SecurityException
setOwner
in interface SecuredObject
SecurityException
public boolean supportsOwner()
supportsOwner
in interface SecuredObject
public SecurityContext getSecurityContext()
getSecurityContext
in interface SecuredObject
public AccessControlList unsecuredGetAccessControlList() throws SecurityException
This is considered to be a private API for the security policy and domain and should not be used by applications.
unsecuredGetAccessControlList
in interface SecuredObject
SecurityException
public Persona unsecuredGetOwner() throws SecurityException
This is considered to be a private API for the security policy and domain and should not be used by applications.
unsecuredGetOwner
in interface SecuredObject
SecurityException
public SecuredContainer[] unsecuredGetSecuredContainers() throws SecurityException
This implementation always returns null. A security domain should create a subclass that implements this method if ACL inheritance capabilities are desired.
This is considered to be a private API for the security policy and domain and should not be used by applications.
SecurityException
public void unsecuredSetAccessControlList(AccessControlList pAcl) throws SecurityException
This is considered to be a private API for the security domain and should not be used by applications.
unsecuredSetAccessControlList
in interface SecuredObject
SecurityException
public void unsecuredSetOwner(Persona pOwner) throws SecurityException
This is considered to be a private API for the security domain and should not be used by applications.
unsecuredSetOwner
in interface SecuredObject
SecurityException
public SecuredContainer[] unsecuredGetContainers() throws SecurityException
This is considered to be a private API for the security policy and domain objects and should not be used by applications.
This implementation provides no support for containers; this method will always return null.
unsecuredGetContainers
in interface SecuredObject
SecurityException
public void unsecuredSetCreationSecurity() throws SecurityException
SecurityException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |