public abstract class Secret extends Object implements Comparable<Secret>
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
protected int |
priority |
protected String |
token |
protected User |
user |
| Modifier | Constructor and Description |
|---|---|
protected |
Secret(int priority,
String token) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
check(String token) |
int |
compareTo(Secret obj) |
boolean |
equals(Object obj) |
abstract org.gcube.common.authorization.library.utils.Caller |
getCaller() |
abstract org.gcube.common.authorization.library.provider.ClientInfo |
getClientInfo() |
abstract String |
getContext() |
abstract Map<String,String> |
getHTTPAuthorizationHeaders() |
String |
getToken() |
abstract User |
getUser() |
String |
getUsername() |
int |
hashCode() |
boolean |
isApplication() |
abstract boolean |
isExpired() |
abstract boolean |
isRefreshable() |
void |
reset() |
abstract void |
resetToken() |
void |
set() |
void |
setAuthorizationProvider() |
abstract void |
setToken() |
protected static final org.slf4j.Logger logger
protected int priority
protected String token
protected User user
protected Secret(int priority,
String token)
protected void check(String token) throws org.gcube.common.authorization.library.exception.AuthorizationException
org.gcube.common.authorization.library.exception.AuthorizationExceptionpublic String getToken()
public abstract org.gcube.common.authorization.library.provider.ClientInfo getClientInfo()
throws Exception
Exceptionpublic abstract org.gcube.common.authorization.library.utils.Caller getCaller()
throws Exception
Exceptionpublic int compareTo(Secret obj)
compareTo in interface Comparable<Secret>public abstract boolean isExpired()
public abstract boolean isRefreshable()
public abstract User getUser()
Copyright © 2022. All Rights Reserved.