org.gcube.accounting.security
Class SecurityManager

java.lang.Object
  extended by org.gcube.accounting.security.SecurityManager

public class SecurityManager
extends Object

A class providing a single access point to security objects and configuration


Constructor Summary
SecurityManager()
           
 
Method Summary
static boolean authenticate(String username, String password)
           
static AuthenticationManager getAuthenticationManager()
           
static String getAuthnType()
           
static AuthorizationManager getAuthorizationManager()
           
static boolean isAllowed(String userId, Action action)
           
static boolean isAllowed(String userId, Action action, String object)
           
static boolean isAuthnEnabled()
           
static boolean isAuthzEnabled()
           
static void setAuthenticationManager(AuthenticationManager authn)
           
static void setAuthnEnabled(boolean authnEnabled)
           
static void setAuthnType(String authnType)
           
static void setAuthorizationManager(AuthorizationManager authz)
           
static void setAuthzEnabled(boolean authzEnabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityManager

public SecurityManager()
Method Detail

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.