Class KeystoneAccess
- java.lang.Object
-
- org.openstack4j.openstack.identity.v2.domain.KeystoneAccess
-
- All Implemented Interfaces:
Serializable,Access,ModelEntity
public class KeystoneAccess extends Object implements Access
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeystoneAccess.AccessServicestatic classKeystoneAccess.AccessUserstatic classKeystoneAccess.AccessUsers-
Nested classes/interfaces inherited from interface org.openstack4j.model.identity.v2.Access
Access.Service, Access.UserDetails
-
-
Constructor Summary
Constructors Constructor Description KeystoneAccess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeystoneAccessapplyContext(String endpoint, AuthStore credentials)KeystoneAccessapplyContext(String endpoint, TokenAuth token)com.google.common.collect.SortedSetMultimap<String,KeystoneAccess.AccessService>getAggregatedCatalog()A Lazy loading Aggregated Service Catalog Mapping.StringgetCacheIdentifier()AuthStoregetCredentials()StringgetEndpoint()List<? extends Access.Service>getServiceCatalog()TokenV2getToken()TokenAuthgetTokenAuth()Access.UserDetailsgetUser()AuthVersiongetVersion()booleanisCredentialType()voidsetEndpoint(String endpoint)ONLY used for unit testsStringtoString()<T> Tunwrap()If Access is being wrapped such as in V3 then this will return the underlying wrapped instance.
-
-
-
Method Detail
-
getServiceCatalog
public List<? extends Access.Service> getServiceCatalog()
- Specified by:
getServiceCatalogin interfaceAccess- Returns:
- the serviceCatalog
-
getAggregatedCatalog
public com.google.common.collect.SortedSetMultimap<String,KeystoneAccess.AccessService> 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- Specified by:
getAggregatedCatalogin interfaceAccess- Returns:
- sorted aggregate service catalog
-
getUser
public Access.UserDetails getUser()
-
getEndpoint
public String getEndpoint()
- Specified by:
getEndpointin interfaceAccess- Returns:
- the original endpoint used to authenticate
-
setEndpoint
public void setEndpoint(String endpoint)
ONLY used for unit tests
-
getCredentials
public AuthStore getCredentials()
-
getTokenAuth
public TokenAuth getTokenAuth()
-
isCredentialType
public boolean isCredentialType()
-
applyContext
public KeystoneAccess applyContext(String endpoint, AuthStore credentials)
-
applyContext
public KeystoneAccess applyContext(String endpoint, TokenAuth token)
-
getVersion
public AuthVersion getVersion()
- Specified by:
getVersionin interfaceAccess- Returns:
- the version of the authentication method
-
unwrap
public <T> T unwrap()
Description copied from interface:AccessIf Access is being wrapped such as in V3 then this will return the underlying wrapped instance. Otherwise it returns itself
-
getCacheIdentifier
public String getCacheIdentifier()
- Specified by:
getCacheIdentifierin interfaceAccess- Returns:
- the internal UUID used for cache lookups of this access
-
-