public static enum TokenSecurity.TimeUnit extends Enum<TokenSecurity.TimeUnit>
Modifier and Type | Field and Description |
---|---|
private int |
timeUnit
time unit
|
Modifier and Type | Method and Description |
---|---|
int |
getTimeUnit()
Returns the time unit.
|
static TokenSecurity.TimeUnit |
getTimeUnitFrom(int value)
Returns the time unit from a value.
|
static TokenSecurity.TimeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenSecurity.TimeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenSecurity.TimeUnit HOUR
public static final TokenSecurity.TimeUnit DAY
public static final TokenSecurity.TimeUnit YEAR
public static TokenSecurity.TimeUnit[] values()
for (TokenSecurity.TimeUnit c : TokenSecurity.TimeUnit.values()) System.out.println(c);
public static TokenSecurity.TimeUnit valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getTimeUnit()
public static TokenSecurity.TimeUnit getTimeUnitFrom(int value)
value
- valeCopyright © 2017–2020 CNES. All rights reserved.