public class SecurityManager extends Object
| Constructor and Description |
|---|
SecurityManager() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static String getAuthnType()
public static void setAuthnType(String authnType)
public static AuthenticationManager getAuthenticationManager()
public static void setAuthenticationManager(AuthenticationManager authn)
public static void setAuthorizationManager(AuthorizationManager authz)
public static AuthorizationManager getAuthorizationManager()
public static boolean isAuthnEnabled()
public static void setAuthnEnabled(boolean authnEnabled)
public static boolean isAuthzEnabled()
public static void setAuthzEnabled(boolean authzEnabled)
Copyright © 2015. All Rights Reserved.