Class Token
- java.lang.Object
-
- org.jclouds.openstack.keystone.v1_1.domain.Token
-
- All Implemented Interfaces:
Comparable<Token>
public class Token extends Object implements 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Token.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Token.Builder
builder()
int
compareTo(Token that)
boolean
equals(Object object)
Date
getExpires()
String
getId()
When providing an ID, it is assumed that the token exists in the current OpenStack deploymentint
hashCode()
Token.Builder
toBuilder()
String
toString()
-
-
-
Method Detail
-
builder
public static Token.Builder builder()
-
toBuilder
public Token.Builder toBuilder()
-
getId
public 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
-
getExpires
public Date getExpires()
- Returns:
- the expires of the token
-
compareTo
public int compareTo(Token that)
- Specified by:
compareTo
in interfaceComparable<Token>
-
-