-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathCreateAuthenticationTokenResponse.java
More file actions
47 lines (40 loc) · 1.12 KB
/
CreateAuthenticationTokenResponse.java
File metadata and controls
47 lines (40 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.yoti.auth;
public final class CreateAuthenticationTokenResponse {
private String accessToken;
private String tokenType;
private Integer expiresIn;
private String scope;
/**
* Returns the Yoti Authentication token used to perform requests to other Yoti services.
*
* @return the newly created access token
*/
public String getAccessToken() {
return accessToken;
}
/**
* Returns the type of the newly generated authentication token.
*
* @return the token type
*/
public String getTokenType() {
return tokenType;
}
/**
* Returns the amount of time (in seconds) in which the newly generated Authentication Token
* will expire in.
*
* @return the time (in seconds) of when the token will expire
*/
public Integer getExpiresIn() {
return expiresIn;
}
/**
* A whitespace delimited string of scopes that the Authentication token has.
*
* @return the scopes of the token as a whitespace delimited string
*/
public String getScope() {
return scope;
}
}