Class Token
- java.lang.Object
- 
- org.jclouds.openstack.keystone.v2_0.domain.Token
 
- 
- All Implemented Interfaces:
- Comparable<Token>
 
 public class Token extends Object implements Comparable<Token> A token is an arbitrary bit of text that is used to access resources. Each token has a scope which describes which resources are accessible with it. A token may be revoked at anytime and is valid for a finite duration. While Keystone supports token-based authentication in this release, the intention is for it to support additional protocols in the future. The intent is for it to be an integration service foremost, and not a aspire to be a full-fledged identity store and management solution.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classToken.Builder<T extends Token.Builder<T>>
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Token.Builder<?>builder()intcompareTo(Token that)booleanequals(Object obj)DategetExpires()StringgetId()When providing an ID, it is assumed that the token exists in the current OpenStack deploymentcom.google.common.base.Optional<Tenant>getTenant()inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()Token.Builder<?>toBuilder()StringtoString()
 
- 
- 
- 
Constructor Detail- 
Token@ConstructorProperties({"id","expires","tenant"}) protected Token(String id, Date expires, @Nullable com.google.common.base.Optional<Tenant> tenant) 
 
- 
 - 
Method Detail- 
builderpublic static Token.Builder<?> builder() 
 - 
toBuilderpublic Token.Builder<?> toBuilder() 
 - 
getIdpublic String getId() When providing an ID, it is assumed that the token exists in the current OpenStack deployment- Returns:
- the id of the token in the current OpenStack deployment
 
 - 
getExpirespublic Date getExpires() - Returns:
- the expires of the token
 
 - 
getTenantpublic com.google.common.base.Optional<Tenant> getTenant() - Returns:
- the tenant assigned to the token
 
 - 
stringprotected com.google.common.base.MoreObjects.ToStringHelper string() 
 - 
compareTopublic int compareTo(Token that) - Specified by:
- compareToin interface- Comparable<Token>
 
 
- 
 
-