public class ContextUtility extends Object
| Constructor and Description |
|---|
ContextUtility() |
| Modifier and Type | Method and Description |
|---|---|
static org.gcube.common.authorization.library.provider.ClientInfo |
getClientInfo() |
static String |
getCurrentContext() |
static String |
getUsername() |
static boolean |
isApplication() |
static void |
setContext(String token) |
public static void setContext(String token) throws org.gcube.common.authorization.client.exceptions.ObjectNotFound, Exception
org.gcube.common.authorization.client.exceptions.ObjectNotFoundExceptionpublic static String getCurrentContext()
public static org.gcube.common.authorization.library.provider.ClientInfo getClientInfo()
public static String getUsername()
public static boolean isApplication()
Copyright © 2020. All Rights Reserved.