Class KeystoneToken
- java.lang.Object
-
- org.openstack4j.openstack.identity.v3.domain.KeystoneToken
-
- All Implemented Interfaces:
Serializable,Token,ModelEntity
public class KeystoneToken extends Object implements Token
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeystoneToken()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeystoneTokenapplyContext(String endpoint, AuthStore credentials)KeystoneTokenapplyContext(String endpoint, KeystoneAuth credentials)KeystoneTokenapplyContext(String endpoint, TokenAuth token)com.google.common.collect.SortedSetMultimap<String,Service>getAggregatedCatalog()A Lazy loading Aggregated Service Catalog Mapping.List<String>getAuditIds()StringgetCacheIdentifier()List<? extends KeystoneService>getCatalog()KeystoneAuthgetCredentials()KeystoneDomaingetDomain()StringgetEndpoint()DategetExpires()StringgetId()DategetIssuedAt()List<String>getMethods()KeystoneProjectgetProject()List<? extends KeystoneRole>getRoles()KeystoneUsergetUser()AuthVersiongetVersion()voidsetEndpoint(String endpoint)voidsetId(String id)sets the id of the token from response header valueStringtoString()
-
-
-
Method Detail
-
setId
public void setId(String id)
Description copied from interface:Tokensets the id of the token from response header value
-
getExpires
public Date getExpires()
- Specified by:
getExpiresin interfaceToken- Returns:
- the timestamp when the token expires
-
getVersion
public AuthVersion getVersion()
- Specified by:
getVersionin interfaceToken- Returns:
- the authentication version
-
getIssuedAt
public Date getIssuedAt()
- Specified by:
getIssuedAtin interfaceToken- Returns:
- the timestamp when the token was issued
-
getAuditIds
public List<String> getAuditIds()
- Specified by:
getAuditIdsin interfaceToken- Returns:
- the list of audit identifiers
-
getMethods
public List<String> getMethods()
- Specified by:
getMethodsin interfaceToken- Returns:
- the methods of the token
-
getCatalog
public List<? extends KeystoneService> getCatalog()
- Specified by:
getCatalogin interfaceToken- Returns:
- the catalog of the token
-
getProject
public KeystoneProject getProject()
- Specified by:
getProjectin interfaceToken- Returns:
- the project of the token
-
getDomain
public KeystoneDomain getDomain()
-
getUser
public KeystoneUser getUser()
-
getRoles
public List<? extends KeystoneRole> getRoles()
-
getCredentials
public KeystoneAuth getCredentials()
- Specified by:
getCredentialsin interfaceToken- Returns:
- the authentication store
-
getEndpoint
public String getEndpoint()
- Specified by:
getEndpointin interfaceToken- Returns:
- the endpoint
-
setEndpoint
public void setEndpoint(String endpoint)
-
applyContext
public KeystoneToken applyContext(String endpoint, KeystoneAuth credentials)
-
applyContext
public KeystoneToken applyContext(String endpoint, TokenAuth token)
-
applyContext
public KeystoneToken applyContext(String endpoint, AuthStore credentials)
-
getAggregatedCatalog
public com.google.common.collect.SortedSetMultimap<String,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- Specified by:
getAggregatedCatalogin interfaceToken- Returns:
- sorted aggregate service catalog
-
getCacheIdentifier
public String getCacheIdentifier()
- Specified by:
getCacheIdentifierin interfaceToken- Returns:
- the internal UUID used for cache lookups
-
-