Class AuthInfo
java.lang.Object
com.microsoft.azure.management.containerregistry.AuthInfo
The authorization properties for accessing the source code repository.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet time in seconds that the token remains valid.Get the refresh token used to refresh the access token.scope()
Get the scope of the access token.token()
Get the access token used to access the source control provider.Get the type of Auth token.withExpiresIn
(Integer expiresIn) Set time in seconds that the token remains valid.withRefreshToken
(String refreshToken) Set the refresh token used to refresh the access token.Set the scope of the access token.Set the access token used to access the source control provider.withTokenType
(TokenType tokenType) Set the type of Auth token.
-
Constructor Details
-
AuthInfo
public AuthInfo()
-
-
Method Details
-
tokenType
Get the type of Auth token. Possible values include: 'PAT', 'OAuth'.- Returns:
- the tokenType value
-
withTokenType
Set the type of Auth token. Possible values include: 'PAT', 'OAuth'.- Parameters:
tokenType
- the tokenType value to set- Returns:
- the AuthInfo object itself.
-
token
Get the access token used to access the source control provider.- Returns:
- the token value
-
withToken
Set the access token used to access the source control provider.- Parameters:
token
- the token value to set- Returns:
- the AuthInfo object itself.
-
refreshToken
Get the refresh token used to refresh the access token.- Returns:
- the refreshToken value
-
withRefreshToken
Set the refresh token used to refresh the access token.- Parameters:
refreshToken
- the refreshToken value to set- Returns:
- the AuthInfo object itself.
-
scope
Get the scope of the access token.- Returns:
- the scope value
-
withScope
Set the scope of the access token.- Parameters:
scope
- the scope value to set- Returns:
- the AuthInfo object itself.
-
expiresIn
Get time in seconds that the token remains valid.- Returns:
- the expiresIn value
-
withExpiresIn
Set time in seconds that the token remains valid.- Parameters:
expiresIn
- the expiresIn value to set- Returns:
- the AuthInfo object itself.
-