uk.org.ogsadai.service.authorization
Class AuthorizationFactory
java.lang.Object
|
+--uk.org.ogsadai.service.authorization.AuthorizationFactory
- public class AuthorizationFactory
- extends java.lang.Object
Creates an authorizer class that implements the AccessAuthorizer
interface. The authorizer class is expected to have a constructor with a single java.lang.String
parameter.
- Author:
- The OGSA-DAI Team.
Field Summary |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private static DAILogger |
LOG
Logger object for this class. |
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
LOG
private static final DAILogger LOG
-
Logger object for this class.
AuthorizationFactory
public AuthorizationFactory()
createAuthorization
public static AccessAuthorizer createAuthorization(java.lang.String configFile)
throws AuthorizationInitialisationException
-
Creates a new resource authorization class as specified in a configuration file.
-
- Parameters:
configFile
- location of the configuration file that specifies the class name of the authorization class.
- Returns:
- an access authorizer
- Throws:
AuthorizationInitialisationException
- if a problem occurred reading the configuration file or the authorization class could not be created.