public class SecurityUtils extends Object
| Constructor and Description |
|---|
SecurityUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getPrincipal()
Return the authenticated user if any otherwise returns "anonymous"
|
static Collection |
getRealmsList() |
static HashSet<String> |
getRoles()
Return the roles associated with the authenticated user if any otherwise returns empty set
TODO(prasadwagle) Find correct way to get user roles (see SHIRO-492)
|
static void |
initSecurityManager(String shiroPath) |
static Boolean |
isValidOrigin(String sourceHost,
ZeppelinConfiguration conf) |
public static void initSecurityManager(String shiroPath)
public static Boolean isValidOrigin(String sourceHost, ZeppelinConfiguration conf) throws UnknownHostException, URISyntaxException
public static String getPrincipal()
public static Collection getRealmsList()
Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.