public class AccessWrapper extends Object implements Access
| Modifier and Type | Class and Description |
|---|---|
static class |
AccessWrapper.ServiceWrapper |
static class |
AccessWrapper.UserWrapper |
Access.Service, Access.UserDetails| Modifier and Type | Method and Description |
|---|---|
String |
getCacheIdentifier() |
String |
getEndpoint() |
List<? extends Access.Service> |
getServiceCatalog() |
TokenV3 |
getToken() |
Access.UserDetails |
getUser() |
AuthVersion |
getVersion() |
<T> T |
unwrap()
If Access is being wrapped such as in V3 then this will return the underlying wrapped instance.
|
static AccessWrapper |
wrap(KeystoneTokenV3 token)
Wraps the V3 Token into a V2 Access type
|
public static AccessWrapper wrap(KeystoneTokenV3 token)
token - the V3 tokenpublic TokenV3 getToken()
public List<? extends Access.Service> getServiceCatalog()
getServiceCatalog in interface Accesspublic Access.UserDetails getUser()
public String getEndpoint()
getEndpoint in interface Accesspublic AuthVersion getVersion()
getVersion in interface Accesspublic <T> T unwrap()
Accesspublic String getCacheIdentifier()
getCacheIdentifier in interface Access