Class AuthInfo
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.AuthInfo
-
public final class AuthInfo extends Object
The authorization properties for accessing the source code repository.
-
-
Constructor Summary
Constructors Constructor Description AuthInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerexpiresIn()Get the expiresIn property: Time in seconds that the token remains valid.StringrefreshToken()Get the refreshToken property: The refresh token used to refresh the access token.Stringscope()Get the scope property: The scope of the access token.Stringtoken()Get the token property: The access token used to access the source control provider.TokenTypetokenType()Get the tokenType property: The type of Auth token.voidvalidate()Validates the instance.AuthInfowithExpiresIn(Integer expiresIn)Set the expiresIn property: Time in seconds that the token remains valid.AuthInfowithRefreshToken(String refreshToken)Set the refreshToken property: The refresh token used to refresh the access token.AuthInfowithScope(String scope)Set the scope property: The scope of the access token.AuthInfowithToken(String token)Set the token property: The access token used to access the source control provider.AuthInfowithTokenType(TokenType tokenType)Set the tokenType property: The type of Auth token.
-
-
-
Method Detail
-
tokenType
public TokenType tokenType()
Get the tokenType property: The type of Auth token.- Returns:
- the tokenType value.
-
withTokenType
public AuthInfo withTokenType(TokenType tokenType)
Set the tokenType property: The type of Auth token.- Parameters:
tokenType- the tokenType value to set.- Returns:
- the AuthInfo object itself.
-
token
public String token()
Get the token property: The access token used to access the source control provider.- Returns:
- the token value.
-
withToken
public AuthInfo withToken(String token)
Set the token property: The access token used to access the source control provider.- Parameters:
token- the token value to set.- Returns:
- the AuthInfo object itself.
-
refreshToken
public String refreshToken()
Get the refreshToken property: The refresh token used to refresh the access token.- Returns:
- the refreshToken value.
-
withRefreshToken
public AuthInfo withRefreshToken(String refreshToken)
Set the refreshToken property: The refresh token used to refresh the access token.- Parameters:
refreshToken- the refreshToken value to set.- Returns:
- the AuthInfo object itself.
-
scope
public String scope()
Get the scope property: The scope of the access token.- Returns:
- the scope value.
-
withScope
public AuthInfo withScope(String scope)
Set the scope property: The scope of the access token.- Parameters:
scope- the scope value to set.- Returns:
- the AuthInfo object itself.
-
expiresIn
public Integer expiresIn()
Get the expiresIn property: Time in seconds that the token remains valid.- Returns:
- the expiresIn value.
-
withExpiresIn
public AuthInfo withExpiresIn(Integer expiresIn)
Set the expiresIn property: Time in seconds that the token remains valid.- Parameters:
expiresIn- the expiresIn value to set.- Returns:
- the AuthInfo object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-