Interface Access
-
- All Superinterfaces:
ModelEntity
,Serializable
- All Known Implementing Classes:
KeystoneAccess
public interface Access extends ModelEntity
Access is the entity returned when Authenticated by the Identity service- Author:
- Jeremy Unruh
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Access.Service
static interface
Access.UserDetails
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.common.collect.SortedSetMultimap<String,? extends Access.Service>
getAggregatedCatalog()
A Lazy loading Aggregated Service Catalog Mapping.String
getCacheIdentifier()
String
getEndpoint()
List<? extends Access.Service>
getServiceCatalog()
Token
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.
-
-
-
Method Detail
-
getToken
Token getToken()
- Returns:
- the authorized token
-
getServiceCatalog
List<? extends Access.Service> getServiceCatalog()
- Returns:
- the service catalog
-
getAggregatedCatalog
com.google.common.collect.SortedSetMultimap<String,? extends Access.Service> getAggregatedCatalog()
A Lazy loading Aggregated Service Catalog Mapping. The key is a stripped version service type or name with a collection of Services sorted by version- Returns:
- sorted aggregate service catalog
-
getEndpoint
String getEndpoint()
- Returns:
- the original endpoint used to authenticate
-
getUser
Access.UserDetails getUser()
- Returns:
- details about the current user
-
unwrap
<T> T unwrap()
If Access is being wrapped such as in V3 then this will return the underlying wrapped instance. Otherwise it returns itself- Returns:
- the unwrapped underlying data source
-
getCacheIdentifier
String getCacheIdentifier()
- Returns:
- the internal UUID used for cache lookups of this access
-
getVersion
AuthVersion getVersion()
- Returns:
- the version of the authentication method
-
-