Class DefaultAuthorizationProxy
- java.lang.Object
-
- org.gcube.common.authorization.client.proxy.DefaultAuthorizationProxy
-
- All Implemented Interfaces:
AuthorizationProxy
public class DefaultAuthorizationProxy extends Object implements AuthorizationProxy
-
-
Constructor Summary
Constructors Constructor Description DefaultAuthorizationProxy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgenerateUserToken(org.gcube.common.authorization.library.provider.UserInfo client, String context)org.gcube.common.authorization.library.AuthorizationEntryget(String token)List<org.gcube.common.authorization.library.AuthorizationEntry>get(List<String> tokens)org.gcube.common.authorization.library.endpoints.AuthorizationEndpointgetEndpoint(int infrastructureHash)voidremoveAllReleatedToken(String clientId, String context)StringresolveTokenByUserAndContext(String user, String context)voidsetEndpoint(org.gcube.common.authorization.library.endpoints.EndpointsContainer newEndpoints)voidsetTokenRoles(String token, List<String> roles)
-
-
-
Method Detail
-
resolveTokenByUserAndContext
public String resolveTokenByUserAndContext(String user, String context) throws ObjectNotFound, Exception
- Specified by:
resolveTokenByUserAndContextin interfaceAuthorizationProxy- Throws:
ObjectNotFoundException
-
generateUserToken
public String generateUserToken(org.gcube.common.authorization.library.provider.UserInfo client, String context) throws Exception
- Specified by:
generateUserTokenin interfaceAuthorizationProxy- Throws:
Exception
-
setTokenRoles
public void setTokenRoles(String token, List<String> roles) throws Exception
- Specified by:
setTokenRolesin interfaceAuthorizationProxy- Throws:
Exception
-
removeAllReleatedToken
public void removeAllReleatedToken(String clientId, String context) throws Exception
- Specified by:
removeAllReleatedTokenin interfaceAuthorizationProxy- Throws:
Exception
-
get
public org.gcube.common.authorization.library.AuthorizationEntry get(String token) throws ObjectNotFound, Exception
- Specified by:
getin interfaceAuthorizationProxy- Throws:
ObjectNotFoundException
-
get
public List<org.gcube.common.authorization.library.AuthorizationEntry> get(List<String> tokens) throws ObjectNotFound, Exception
- Specified by:
getin interfaceAuthorizationProxy- Throws:
ObjectNotFoundException
-
getEndpoint
public org.gcube.common.authorization.library.endpoints.AuthorizationEndpoint getEndpoint(int infrastructureHash)
- Specified by:
getEndpointin interfaceAuthorizationProxy
-
setEndpoint
public void setEndpoint(org.gcube.common.authorization.library.endpoints.EndpointsContainer newEndpoints)
- Specified by:
setEndpointin interfaceAuthorizationProxy
-
-