Package net.webpdf.wsclient.openapi
Class AuthSessionToken
- java.lang.Object
-
- net.webpdf.wsclient.openapi.AuthSessionToken
-
public class AuthSessionToken extends Object
Session token
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_EXPIRES_INstatic StringJSON_PROPERTY_REFRESH_TOKENstatic StringJSON_PROPERTY_TOKEN
-
Constructor Summary
Constructors Constructor Description AuthSessionToken()AuthSessionToken(Long expiresIn, String refreshToken, String token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)@Nullable LonggetExpiresIn()If the access token expires, the duration of time in seconds the access token is granted for.@Nullable StringgetRefreshToken()The refresh token string as issued by the server.@NotNull StringgetToken()The access token string as issued by the server.inthashCode()StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_EXPIRES_IN
public static final String JSON_PROPERTY_EXPIRES_IN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFRESH_TOKEN
public static final String JSON_PROPERTY_REFRESH_TOKEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOKEN
public static final String JSON_PROPERTY_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getExpiresIn
@Nullable public @Nullable Long getExpiresIn()
If the access token expires, the duration of time in seconds the access token is granted for.- Returns:
- expiresIn
-
getRefreshToken
@Nullable public @Nullable String getRefreshToken()
The refresh token string as issued by the server. When the access token expires, this token can be used to request a new access token.- Returns:
- refreshToken
-
getToken
@NotNull public @NotNull String getToken()
The access token string as issued by the server.- Returns:
- token
-
-