AccessTokenAuthentication Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. Authentication - com.
azure. resourcemanager. security. models. AccessTokenAuthentication
- com.
- com.
public final class AccessTokenAuthentication
extends Authentication
The environment authentication details.
Constructor Summary
| Constructor | Description |
|---|---|
| AccessTokenAuthentication() |
Creates an instance of Access |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
accessToken()
Get the access |
|
Authentication |
authenticationType()
Get the authentication |
|
static
Access |
fromJson(JsonReader jsonReader)
Reads an instance of Access |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
username()
Get the username property: The user name that will be used while authenticating with the onboarded environment. |
| void |
validate()
Validates the instance. |
|
Access |
withAccessToken(String accessToken)
Set the access |
|
Access |
withUsername(String username)
Set the username property: The user name that will be used while authenticating with the onboarded environment. |
Methods inherited from Authentication
Methods inherited from java.lang.Object
Constructor Details
AccessTokenAuthentication
public AccessTokenAuthentication()
Creates an instance of AccessTokenAuthentication class.
Method Details
accessToken
public String accessToken()
Get the accessToken property: The access token that will be used while authenticating with the onboarded environment.
Returns:
authenticationType
public AuthenticationType authenticationType()
Get the authenticationType property: The authentication type.
Overrides:
AccessTokenAuthentication.authenticationType()Returns:
fromJson
public static AccessTokenAuthentication fromJson(JsonReader jsonReader)
Reads an instance of AccessTokenAuthentication from the JsonReader.
Parameters:
Returns:
Throws:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AccessTokenAuthentication.toJson(JsonWriter jsonWriter)Parameters:
Throws:
username
public String username()
Get the username property: The user name that will be used while authenticating with the onboarded environment.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
AccessTokenAuthentication.validate()withAccessToken
public AccessTokenAuthentication withAccessToken(String accessToken)
Set the accessToken property: The access token that will be used while authenticating with the onboarded environment.
Parameters:
Returns:
withUsername
public AccessTokenAuthentication withUsername(String username)
Set the username property: The user name that will be used while authenticating with the onboarded environment.
Parameters:
Returns: