Class Token
java.lang.Object
org.jclouds.openstack.keystone.v1_1.domain.Token
- All Implemented Interfaces:
Comparable<Token>
Tokens are valid for a finite duration. The expires attribute denotes the
time after which the token will automatically become invalid. A token may be
manually revoked before the time identified by the expires attribute; expires
predicts a token's maximum possible lifespan but does not guarantee that it
will reach that lifespan. Clients are encouraged to cache a token until it
expires.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Token.Builder
builder()
int
boolean
getId()
When providing an ID, it is assumed that the token exists in the current OpenStack deploymentint
hashCode()
toString()
-
Field Details
-
id
-
expires
-
-
Constructor Details
-
Token
protected Token() -
Token
-
-
Method Details
-
builder
-
toBuilder
-
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
-
getExpires
- Returns:
- the expires of the token
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Token>
-