org.gcube.accounting.security
Class SecurityManager
java.lang.Object
org.gcube.accounting.security.SecurityManager
public class SecurityManager
- extends Object
A class providing a single access point to security objects and configuration
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityManager
public SecurityManager()
getAuthnType
public static String getAuthnType()
setAuthnType
public static void setAuthnType(String authnType)
getAuthenticationManager
public static AuthenticationManager getAuthenticationManager()
setAuthenticationManager
public static void setAuthenticationManager(AuthenticationManager authn)
setAuthorizationManager
public static void setAuthorizationManager(AuthorizationManager authz)
getAuthorizationManager
public static AuthorizationManager getAuthorizationManager()
isAuthnEnabled
public static boolean isAuthnEnabled()
setAuthnEnabled
public static void setAuthnEnabled(boolean authnEnabled)
isAuthzEnabled
public static boolean isAuthzEnabled()
setAuthzEnabled
public static void setAuthzEnabled(boolean authzEnabled)
isAllowed
public static boolean isAllowed(String userId,
Action action)
isAllowed
public static boolean isAllowed(String userId,
Action action,
String object)
authenticate
public static boolean authenticate(String username,
String password)
Copyright © 2013. All Rights Reserved.