SourceControlSecurityTokenProperties Class
- java.
lang. Object - com.
azure. resourcemanager. automation. models. SourceControlSecurityTokenProperties
- com.
public final class SourceControlSecurityTokenProperties
The SourceControlSecurityTokenProperties model.
Constructor Summary
Constructor | Description | |
---|---|---|
SourceControlSecurityTokenProperties() |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
accessToken()
Get the access |
String |
refreshToken()
Get the refresh |
Token |
tokenType()
Get the token |
void |
validate()
Validates the instance. |
Source |
withAccessToken(String accessToken)
Set the access |
Source |
withRefreshToken(String refreshToken)
Set the refresh |
Source |
withTokenType(TokenType tokenType)
Set the token |
Methods inherited from java.lang.Object
Constructor Details
SourceControlSecurityTokenProperties
public SourceControlSecurityTokenProperties()
Method Details
accessToken
public String accessToken()
Get the accessToken property: The access token.
Returns:
refreshToken
public String refreshToken()
Get the refreshToken property: The refresh token.
Returns:
tokenType
public TokenType tokenType()
Get the tokenType property: The token type. Must be either PersonalAccessToken or Oauth.
Returns:
validate
public void validate()
Validates the instance.
withAccessToken
public SourceControlSecurityTokenProperties withAccessToken(String accessToken)
Set the accessToken property: The access token.
Parameters:
Returns:
withRefreshToken
public SourceControlSecurityTokenProperties withRefreshToken(String refreshToken)
Set the refreshToken property: The refresh token.
Parameters:
Returns:
withTokenType
public SourceControlSecurityTokenProperties withTokenType(TokenType tokenType)
Set the tokenType property: The token type. Must be either PersonalAccessToken or Oauth.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for