|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.slide.security.SecurityImpl
org.apache.slide.security.ACLSecurityImpl
WebDAV/ACL compliant security helper implementation (draft-12)
| Field Summary |
| Fields inherited from class org.apache.slide.security.SecurityImpl |
aclInheritanceType, logger, namespace, namespaceConfig, rolesCache |
| Constructor Summary | |
ACLSecurityImpl(Namespace namespace,
NamespaceConfig namespaceConfig)
Constructor. |
|
| Method Summary | |
java.util.Enumeration |
getGroupMembership(SlideToken token,
SubjectNode subjectNode)
Get enumeration of paths according to property DAV:group-membership |
java.util.Enumeration |
getRoles(ObjectNode object)
Return the list of roles the specified node has. |
java.util.Enumeration |
getRoles(SlideToken token)
Return the list of roles the specified token has. |
java.util.Enumeration |
getRoles(SlideToken token,
SubjectNode subjectNode)
Get the role names the specified subject has (deeply over nested roles, if there) |
boolean |
hasPermission(ObjectNode object,
SubjectNode subject,
ActionNode action)
Check whether or not an actor can perform the specified activity on a collection. |
boolean |
hasPermission(SlideToken token,
ObjectNode objectNode,
ActionNode actionNode)
Check whether or not an actor (principal) can perform the specified activity on the specified resource. |
boolean |
hasRole(ObjectNode object,
java.lang.String role)
Check whether or not the current user has the specified role. |
boolean |
hasRole(SlideToken token,
java.lang.String role)
Check whether or not the current user has the specified role. |
boolean |
hasRole(SlideToken token,
SubjectNode subjectNode,
java.lang.String role)
|
void |
init(Namespace namespace,
NamespaceConfig namespaceConfig)
Method init |
| Methods inherited from class org.apache.slide.security.SecurityImpl |
checkCredentials, checkPermission, checkPermission, denyPermission, denyPermission, denyPermission, enumeratePermissions, enumeratePermissions, enumeratePermissions, enumeratePermissions, getActionAggregation, getPrincipal, grantPermission, grantPermission, grantPermission, matchAction, matchPrincipal, matchPrincipal, retrieveAclSourceNodes, revokePermission, revokePermission, setPermissions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ACLSecurityImpl(Namespace namespace,
NamespaceConfig namespaceConfig)
namespace - NamespacenamespaceConfig - Namespace configuration| Method Detail |
public void init(Namespace namespace,
NamespaceConfig namespaceConfig)
init in interface Securityinit in class SecurityImplnamespace - a NamespacenamespaceConfig - a NamespaceConfig
public boolean hasPermission(ObjectNode object,
SubjectNode subject,
ActionNode action)
throws ServiceAccessException,
ObjectNotFoundException
hasPermission in interface SecurityhasPermission in class SecurityImplobject - Object on which access is testedsubject - Subject who seeks to perform the actionaction - Action which is to be performed
ServiceAccessException - DataSource access error
ObjectNotFoundException - Specified object was not found
in the DataSource
public boolean hasPermission(SlideToken token,
ObjectNode objectNode,
ActionNode actionNode)
throws ServiceAccessException,
ObjectNotFoundException
hasPermission in interface SecurityhasPermission in class SecurityImpltoken - a SlideTokenobjectNode - Object on which access is testedactionNode - Action which is to be performed
ServiceAccessException
ObjectNotFoundException
public boolean hasRole(SlideToken token,
java.lang.String role)
throws ServiceAccessException,
ObjectNotFoundException
SecurityImpl
hasRole in interface SecurityhasRole in class SecurityImpltoken - Credentials tokenrole - Role
ObjectNotFoundException - Specified object was not found
in the DataSource
ServiceAccessException - DataSource access error
public boolean hasRole(SlideToken token,
SubjectNode subjectNode,
java.lang.String role)
throws ServiceAccessException,
ObjectNotFoundException
ServiceAccessException
ObjectNotFoundException
public boolean hasRole(ObjectNode object,
java.lang.String role)
throws ServiceAccessException,
ObjectNotFoundException
SecurityImpl
hasRole in interface SecurityhasRole in class SecurityImplobject - Object noderole - Role
ObjectNotFoundException - Specified object was not found
in the DataSource
ServiceAccessException - DataSource access error
public java.util.Enumeration getRoles(SlideToken token)
throws ServiceAccessException,
ObjectNotFoundException
SecurityImpl
getRoles in interface SecuritygetRoles in class SecurityImpltoken - Credentials token
ServiceAccessException
ObjectNotFoundException
public java.util.Enumeration getRoles(SlideToken token,
SubjectNode subjectNode)
throws ServiceAccessException,
ObjectNotFoundException
getRoles in interface SecuritygetRoles in class SecurityImpltoken - a SlideTokensubjectNode - a SubjectNode
ServiceAccessException
ObjectNotFoundException
public java.util.Enumeration getGroupMembership(SlideToken token,
SubjectNode subjectNode)
throws ServiceAccessException,
ObjectNotFoundException
token - a SlideTokensubjectNode - a SubjectNode
ServiceAccessException
ObjectNotFoundExceptionpublic java.util.Enumeration getRoles(ObjectNode object)
SecurityImpl
getRoles in interface SecuritygetRoles in class SecurityImplobject - Object node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||