public class TokenLifetime extends Object
Modifier and Type | Field and Description |
---|---|
static TokenLifetime |
USE_DEFAULT
Indicates that the token does not specify a concrete lifetime, and will use the default lifetime
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getSeconds() |
int |
hashCode() |
static TokenLifetime |
inSeconds(long seconds)
Builds a new instance that represents a requested lifetime of a given number of seconds
|
boolean |
isDefault() |
public static final TokenLifetime USE_DEFAULT
public long getSeconds()
IllegalStateException
- if this is the default lifetime, i.e., it does not prescribe a particular durationpublic boolean isDefault()
public static TokenLifetime inSeconds(long seconds)
seconds
- requested token lifetime in secondsCopyright © 2016 Atlassian. All rights reserved.