public interface SecuredResource
SecuredResource
Implemented by those resources that have a security constraint defined for security purposes.
Modifier and Type | Method and Description |
---|---|
void |
checkAccess(String actions)
checkAccess
|
void |
checkConstraints(String actions)
checkConstraints
|
void |
checkPermissions(int mask)
checkPermissions
|
boolean |
getConstraintsEnabled()
getConstraintsEnabled
|
boolean |
getPermissionsEnabled()
getPermissionsEnabled
|
SecurityConstraints |
getSecurityConstraints()
getSecurityConstraints
|
SecurityConstraint |
newSecurityConstraint()
newSecurityConstraint
|
SecurityConstraints |
newSecurityConstraints()
newSecurityConstraints
|
void |
setSecurityConstraints(SecurityConstraints constraints)
setSecurityConstraints
|
boolean getConstraintsEnabled()
getConstraintsEnabled
SecurityConstraints getSecurityConstraints()
getSecurityConstraints
SecurityConstraints newSecurityConstraints()
newSecurityConstraints
SecurityConstraint newSecurityConstraint()
newSecurityConstraint
void setSecurityConstraints(SecurityConstraints constraints)
setSecurityConstraints
constraints
- security constraints for resourcevoid checkConstraints(String actions) throws SecurityException
checkConstraints
actions
- list to be checked against in CSV string formSecurityException
boolean getPermissionsEnabled()
getPermissionsEnabled
void checkPermissions(int mask) throws SecurityException
checkPermissions
mask
- Mask of actions to be checkedSecurityException
void checkAccess(String actions) throws SecurityException
checkAccess
actions
- list to be checked against in CSV string formSecurityException
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.