public class GCubeSecret extends Secret
| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.common.authorization.library.AuthorizationEntry |
authorizationEntry |
static String |
GCUBE_TOKEN_REGEX |
| Constructor and Description |
|---|
GCubeSecret(String token) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
check(String token) |
protected org.gcube.common.authorization.library.AuthorizationEntry |
getAuthorizationEntry() |
org.gcube.common.authorization.library.utils.Caller |
getCaller() |
org.gcube.common.authorization.library.provider.ClientInfo |
getClientInfo() |
String |
getContext() |
Map<String,String> |
getHTTPAuthorizationHeaders() |
User |
getUser() |
boolean |
isExpired() |
boolean |
isRefreshable() |
void |
resetToken() |
void |
setToken() |
compareTo, equals, getToken, getUsername, hashCode, isApplication, reset, set, setAuthorizationProviderpublic static final String GCUBE_TOKEN_REGEX
protected org.gcube.common.authorization.library.AuthorizationEntry authorizationEntry
public GCubeSecret(String token)
protected void check(String token) throws org.gcube.common.authorization.library.exception.AuthorizationException
protected org.gcube.common.authorization.library.AuthorizationEntry getAuthorizationEntry()
throws Exception
Exceptionpublic void setToken()
throws Exception
public void resetToken()
throws Exception
resetToken in class SecretExceptionpublic org.gcube.common.authorization.library.provider.ClientInfo getClientInfo()
throws Exception
getClientInfo in class SecretExceptionpublic org.gcube.common.authorization.library.utils.Caller getCaller()
throws Exception
public String getContext() throws Exception
getContext in class SecretExceptionpublic Map<String,String> getHTTPAuthorizationHeaders()
getHTTPAuthorizationHeaders in class Secretpublic boolean isRefreshable()
isRefreshable in class SecretCopyright © 2022. All Rights Reserved.