AuthInfo Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. AuthInfo
- com.
Implements
public final class AuthInfo
implements JsonSerializable<AuthInfo>
The authorization properties for accessing the source code repository.
Constructor Summary
Constructor | Description |
---|---|
AuthInfo() |
Creates an instance of Auth |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
expiresIn()
Get the expires |
static
Auth |
fromJson(JsonReader jsonReader)
Reads an instance of Auth |
String |
refreshToken()
Get the refresh |
String |
scope()
Get the scope property: The scope of the access token. |
Json |
toJson(JsonWriter jsonWriter) |
String |
token()
Get the token property: The access token used to access the source control provider. |
Token |
tokenType()
Get the token |
void |
validate()
Validates the instance. |
Auth |
withExpiresIn(Integer expiresIn)
Set the expires |
Auth |
withRefreshToken(String refreshToken)
Set the refresh |
Auth |
withScope(String scope)
Set the scope property: The scope of the access token. |
Auth |
withToken(String token)
Set the token property: The access token used to access the source control provider. |
Auth |
withTokenType(TokenType tokenType)
Set the token |
Methods inherited from java.lang.Object
Constructor Details
AuthInfo
public AuthInfo()
Creates an instance of AuthInfo class.
Method Details
expiresIn
public Integer expiresIn()
Get the expiresIn property: Time in seconds that the token remains valid.
Returns:
fromJson
public static AuthInfo fromJson(JsonReader jsonReader)
Reads an instance of AuthInfo from the JsonReader.
Parameters:
Returns:
Throws:
refreshToken
public String refreshToken()
Get the refreshToken property: The refresh token used to refresh the access token.
Returns:
scope
public String scope()
Get the scope property: The scope of the access token.
Returns:
toJson
token
public String token()
Get the token property: The access token used to access the source control provider.
Returns:
tokenType
public TokenType tokenType()
Get the tokenType property: The type of Auth token.
Returns:
validate
public void validate()
Validates the instance.
withExpiresIn
public AuthInfo withExpiresIn(Integer expiresIn)
Set the expiresIn property: Time in seconds that the token remains valid.
Parameters:
Returns:
withRefreshToken
public AuthInfo withRefreshToken(String refreshToken)
Set the refreshToken property: The refresh token used to refresh the access token.
Parameters:
Returns:
withScope
public AuthInfo withScope(String scope)
Set the scope property: The scope of the access token.
Parameters:
Returns:
withToken
public AuthInfo withToken(String token)
Set the token property: The access token used to access the source control provider.
Parameters:
Returns:
withTokenType
public AuthInfo withTokenType(TokenType tokenType)
Set the tokenType property: The type of Auth token.
Parameters:
Returns:
Applies to
Azure SDK for Java