|
static | fromArray (array $input, int $version) |
|
|
const | VERSION_1_KEYS |
|
const | VERSION_2_KEYS |
|
Definition at line 16 of file TokenRequest.php.
◆ __construct()
Fossology\UI\Api\Models\TokenRequest::__construct |
( |
string |
$tokenName, |
|
|
string |
$tokenScope, |
|
|
string |
$tokenExpire, |
|
|
string |
$username = "" , |
|
|
string |
$password = "" |
|
) |
| |
- Parameters
-
string | $tokenName | Token Name |
string | $tokenScope | Token Scope |
string | $tokenExpire | Token Expiry |
string | $username | Username |
string | $password | Password |
- Exceptions
-
HttpBadRequestException | If request is invalid |
Definition at line 64 of file TokenRequest.php.
◆ fromArray()
static Fossology\UI\Api\Models\TokenRequest::fromArray |
( |
array |
$input, |
|
|
int |
$version |
|
) |
| |
|
static |
◆ getPassword()
Fossology\UI\Api\Models\TokenRequest::getPassword |
( |
| ) |
|
◆ getTokenExpire()
Fossology\UI\Api\Models\TokenRequest::getTokenExpire |
( |
| ) |
|
◆ getTokenName()
Fossology\UI\Api\Models\TokenRequest::getTokenName |
( |
| ) |
|
◆ getTokenScope()
Fossology\UI\Api\Models\TokenRequest::getTokenScope |
( |
| ) |
|
◆ getUsername()
Fossology\UI\Api\Models\TokenRequest::getUsername |
( |
| ) |
|
◆ setPassword()
Fossology\UI\Api\Models\TokenRequest::setPassword |
( |
string |
$password | ) |
|
◆ setTokenExpire()
Fossology\UI\Api\Models\TokenRequest::setTokenExpire |
( |
string |
$tokenExpire | ) |
|
◆ setTokenName()
Fossology\UI\Api\Models\TokenRequest::setTokenName |
( |
string |
$tokenName | ) |
|
◆ setTokenScope()
Fossology\UI\Api\Models\TokenRequest::setTokenScope |
( |
string |
$tokenScope | ) |
|
◆ setUsername()
Fossology\UI\Api\Models\TokenRequest::setUsername |
( |
string |
$username | ) |
|
◆ $password
string Fossology\UI\Api\Models\TokenRequest::$password |
|
private |
◆ $tokenExpire
DateTime Fossology\UI\Api\Models\TokenRequest::$tokenExpire |
|
private |
◆ $tokenName
string Fossology\UI\Api\Models\TokenRequest::$tokenName |
|
private |
◆ $tokenScope
string Fossology\UI\Api\Models\TokenRequest::$tokenScope |
|
private |
◆ $username
string Fossology\UI\Api\Models\TokenRequest::$username |
|
private |
◆ VERSION_1_KEYS
const Fossology\UI\Api\Models\TokenRequest::VERSION_1_KEYS |
Initial value:= ["username", "password", "token_name", "token_scope",
"token_expire"]
Definition at line 22 of file TokenRequest.php.
◆ VERSION_2_KEYS
const Fossology\UI\Api\Models\TokenRequest::VERSION_2_KEYS |
Initial value:= ["username", "password", "tokenName", "tokenScope",
"tokenExpire"]
Definition at line 28 of file TokenRequest.php.
The documentation for this class was generated from the following file: