Class Secret
- java.lang.Object
-
- org.gcube.common.authorization.utils.secret.Secret
-
- All Implemented Interfaces:
Comparable<Secret>
- Direct Known Subclasses:
GCubeSecret,JWTSecret
public abstract class Secret extends Object implements Comparable<Secret>
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcheck(String token)intcompareTo(Secret obj)booleanequals(Object obj)abstract org.gcube.common.authorization.library.utils.CallergetCaller()abstract org.gcube.common.authorization.library.provider.ClientInfogetClientInfo()abstract StringgetContext()abstract Map<String,String>getHTTPAuthorizationHeaders()StringgetToken()abstract UsergetUser()StringgetUsername()inthashCode()booleanisApplication()abstract booleanisExpired()abstract booleanisRefreshable()voidreset()abstract voidresetToken()voidset()voidsetAuthorizationProvider()abstract voidsetToken()
-
-
-
Constructor Detail
-
Secret
protected Secret(int priority, String token)
-
-
Method Detail
-
check
protected void check(String token) throws org.gcube.common.authorization.library.exception.AuthorizationException
- Throws:
org.gcube.common.authorization.library.exception.AuthorizationException
-
getToken
public String getToken()
-
getClientInfo
public abstract org.gcube.common.authorization.library.provider.ClientInfo getClientInfo() throws Exception- Throws:
Exception
-
getCaller
public abstract org.gcube.common.authorization.library.utils.Caller getCaller() throws Exception- Throws:
Exception
-
compareTo
public int compareTo(Secret obj)
- Specified by:
compareToin interfaceComparable<Secret>
-
getUser
public abstract User getUser()
-
-