Commit 4a809ace authored by Tom Evans's avatar Tom Evans

OF-774: Remove extraneous getInstance

AuthorizationManager defines only static methods; no need to
instantiate.
parent 3f30d683
...@@ -60,7 +60,6 @@ public class AuthorizationManager { ...@@ -60,7 +60,6 @@ public class AuthorizationManager {
private static ArrayList<AuthorizationPolicy> authorizationPolicies = new ArrayList<AuthorizationPolicy>(); private static ArrayList<AuthorizationPolicy> authorizationPolicies = new ArrayList<AuthorizationPolicy>();
private static ArrayList<AuthorizationMapping> authorizationMapping = new ArrayList<AuthorizationMapping>(); private static ArrayList<AuthorizationMapping> authorizationMapping = new ArrayList<AuthorizationMapping>();
private static AuthorizationManager instance = new AuthorizationManager();
static { static {
// Convert XML based provider setup to Database based // Convert XML based provider setup to Database based
...@@ -117,10 +116,6 @@ public class AuthorizationManager { ...@@ -117,10 +116,6 @@ public class AuthorizationManager {
} }
} }
private AuthorizationManager() {
}
/** /**
* Returns the currently-installed AuthorizationProvider. Warning: You * Returns the currently-installed AuthorizationProvider. Warning: You
* should not be calling the AuthorizationProvider directly to perform * should not be calling the AuthorizationProvider directly to perform
...@@ -133,15 +128,6 @@ public class AuthorizationManager { ...@@ -133,15 +128,6 @@ public class AuthorizationManager {
return authorizationPolicies; return authorizationPolicies;
} }
/**
* Returns a singleton AuthorizationManager instance.
*
* @return a AuthorizationManager instance.
*/
public static AuthorizationManager getInstance() {
return instance;
}
/** /**
* Authorize the authenticated used to the requested username. This uses the * Authorize the authenticated used to the requested username. This uses the
* selected the selected AuthenticationProviders. * selected the selected AuthenticationProviders.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment