public class AuthInfo extends Object
Constructor and Description |
---|
AuthInfo() |
Modifier and Type | Method and Description |
---|---|
Integer |
expiresIn()
Get time in seconds that the token remains valid.
|
String |
refreshToken()
Get the refresh token used to refresh the access token.
|
String |
scope()
Get the scope of the access token.
|
String |
token()
Get the access token used to access the source control provider.
|
TokenType |
tokenType()
Get the type of Auth token.
|
AuthInfo |
withExpiresIn(Integer expiresIn)
Set time in seconds that the token remains valid.
|
AuthInfo |
withRefreshToken(String refreshToken)
Set the refresh token used to refresh the access token.
|
AuthInfo |
withScope(String scope)
Set the scope of the access token.
|
AuthInfo |
withToken(String token)
Set the access token used to access the source control provider.
|
AuthInfo |
withTokenType(TokenType tokenType)
Set the type of Auth token.
|
public TokenType tokenType()
public AuthInfo withTokenType(TokenType tokenType)
tokenType
- the tokenType value to setpublic String token()
public AuthInfo withToken(String token)
token
- the token value to setpublic String refreshToken()
public AuthInfo withRefreshToken(String refreshToken)
refreshToken
- the refreshToken value to setpublic String scope()
public AuthInfo withScope(String scope)
scope
- the scope value to setpublic Integer expiresIn()
Copyright © 2019. All rights reserved.