Package | Description |
---|---|
fr.cnes.doi.security |
Provides classes to secure the server.
|
Modifier and Type | Method and Description |
---|---|
static TokenSecurity.TimeUnit |
TokenSecurity.TimeUnit.getTimeUnitFrom(int value)
Returns the time unit from a value.
|
static TokenSecurity.TimeUnit |
TokenSecurity.TimeUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenSecurity.TimeUnit[] |
TokenSecurity.TimeUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
String |
TokenSecurity.generate(String userID,
int projectID,
TokenSecurity.TimeUnit timeUnit,
int amount)
Creates a token.
|
String |
TokenSecurity.generate(String userID,
TokenSecurity.TimeUnit timeUnit,
int amount)
Creates a token.
|
Copyright © 2017–2020 CNES. All rights reserved.