uk.org.ogsadai.service.authorization
Class NullAuthorizer
java.lang.Object
|
+--uk.org.ogsadai.service.authorization.NullAuthorizer
- All Implemented Interfaces:
- AccessAuthorizer
- public class NullAuthorizer
- extends java.lang.Object
- implements AccessAuthorizer
A dummy implementation of the AccessAuthorizer interface which authorizes access to all resources within any context.
- Author:
- The OGSA-DAI Team.
| Field Summary |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT_NOTICE
private static final java.lang.String COPYRIGHT_NOTICE
-
Copyright statement
- See Also:
- Constant Field Values
NullAuthorizer
public NullAuthorizer()
-
Construct a new authorizer.
NullAuthorizer
public NullAuthorizer(java.lang.String config)
-
Construct a new authorizer. The configuration string is ignored.
- Parameters:
config - configuration parameter
authorizeResource
public boolean authorizeResource(java.lang.String resource,
SecurityContext context)
-
Always returns
true.
-
- Specified by:
authorizeResource in interface AccessAuthorizer
-
- Parameters:
resource - resource to be accessed
context - security context of the request
- Returns:
- boolean indicating whether the resource can be accessed within the given security context.
authorizeActivity
public boolean authorizeActivity(java.lang.String resourceID,
Activity activity,
SecurityContext context)
-
Always returns
true.
-
- Specified by:
authorizeActivity in interface AccessAuthorizer
-
- Parameters:
resourceID - resource identifier
activity - activity object to be accessed
context - context of the request
- Returns:
- boolean value indicating whether access has been granted or denied.