org.oclc.da.gdfr.registryprototype.accesscontrol
Class AuthorizationManager

java.lang.Object
  extended by org.oclc.da.gdfr.registryprototype.accesscontrol.AuthorizationManager

public class AuthorizationManager
extends java.lang.Object


Method Summary
static AuthorizationManager getInstance()
           
 boolean isAuthorized(java.lang.String user, java.lang.String resource, java.lang.String method)
          Determines if a user is authorized to access the given resource via the given method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static AuthorizationManager getInstance()

isAuthorized

public boolean isAuthorized(java.lang.String user,
                            java.lang.String resource,
                            java.lang.String method)
Determines if a user is authorized to access the given resource via the given method

Parameters:
userID - ID if the user in the form "user@institution"
resource - The requested resource
method - How the resource is accessed
Returns:
True if authorized, False otherwise


Copyright © 2008 OCLC Online Computer Library Center, Inc.. All Rights Reserved.