@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OAuth2Properties extends Object implements Serializable, Cloneable, StructuredPojo
A structure containing properties for OAuth2 authentication.
Constructor and Description |
---|
OAuth2Properties() |
Modifier and Type | Method and Description |
---|---|
OAuth2Properties |
addTokenUrlParametersMapEntry(String key,
String value)
Add a single TokenUrlParametersMap entry
|
OAuth2Properties |
clearTokenUrlParametersMapEntries()
Removes all the entries added into TokenUrlParametersMap.
|
OAuth2Properties |
clone() |
boolean |
equals(Object obj) |
OAuth2ClientApplication |
getOAuth2ClientApplication()
The client application type.
|
String |
getOAuth2GrantType()
The OAuth2 grant type.
|
String |
getTokenUrl()
The URL of the provider's authentication server, to exchange an authorization code for an access token.
|
Map<String,String> |
getTokenUrlParametersMap()
A map of parameters that are added to the token
GET request. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setOAuth2ClientApplication(OAuth2ClientApplication oAuth2ClientApplication)
The client application type.
|
void |
setOAuth2GrantType(String oAuth2GrantType)
The OAuth2 grant type.
|
void |
setTokenUrl(String tokenUrl)
The URL of the provider's authentication server, to exchange an authorization code for an access token.
|
void |
setTokenUrlParametersMap(Map<String,String> tokenUrlParametersMap)
A map of parameters that are added to the token
GET request. |
String |
toString()
Returns a string representation of this object.
|
OAuth2Properties |
withOAuth2ClientApplication(OAuth2ClientApplication oAuth2ClientApplication)
The client application type.
|
OAuth2Properties |
withOAuth2GrantType(OAuth2GrantType oAuth2GrantType)
The OAuth2 grant type.
|
OAuth2Properties |
withOAuth2GrantType(String oAuth2GrantType)
The OAuth2 grant type.
|
OAuth2Properties |
withTokenUrl(String tokenUrl)
The URL of the provider's authentication server, to exchange an authorization code for an access token.
|
OAuth2Properties |
withTokenUrlParametersMap(Map<String,String> tokenUrlParametersMap)
A map of parameters that are added to the token
GET request. |
public void setOAuth2GrantType(String oAuth2GrantType)
The OAuth2 grant type. For example, AUTHORIZATION_CODE
, JWT_BEARER
, or
CLIENT_CREDENTIALS
.
oAuth2GrantType
- The OAuth2 grant type. For example, AUTHORIZATION_CODE
, JWT_BEARER
, or
CLIENT_CREDENTIALS
.OAuth2GrantType
public String getOAuth2GrantType()
The OAuth2 grant type. For example, AUTHORIZATION_CODE
, JWT_BEARER
, or
CLIENT_CREDENTIALS
.
AUTHORIZATION_CODE
, JWT_BEARER
, or
CLIENT_CREDENTIALS
.OAuth2GrantType
public OAuth2Properties withOAuth2GrantType(String oAuth2GrantType)
The OAuth2 grant type. For example, AUTHORIZATION_CODE
, JWT_BEARER
, or
CLIENT_CREDENTIALS
.
oAuth2GrantType
- The OAuth2 grant type. For example, AUTHORIZATION_CODE
, JWT_BEARER
, or
CLIENT_CREDENTIALS
.OAuth2GrantType
public OAuth2Properties withOAuth2GrantType(OAuth2GrantType oAuth2GrantType)
The OAuth2 grant type. For example, AUTHORIZATION_CODE
, JWT_BEARER
, or
CLIENT_CREDENTIALS
.
oAuth2GrantType
- The OAuth2 grant type. For example, AUTHORIZATION_CODE
, JWT_BEARER
, or
CLIENT_CREDENTIALS
.OAuth2GrantType
public void setOAuth2ClientApplication(OAuth2ClientApplication oAuth2ClientApplication)
The client application type. For example, AWS_MANAGED or USER_MANAGED.
oAuth2ClientApplication
- The client application type. For example, AWS_MANAGED or USER_MANAGED.public OAuth2ClientApplication getOAuth2ClientApplication()
The client application type. For example, AWS_MANAGED or USER_MANAGED.
public OAuth2Properties withOAuth2ClientApplication(OAuth2ClientApplication oAuth2ClientApplication)
The client application type. For example, AWS_MANAGED or USER_MANAGED.
oAuth2ClientApplication
- The client application type. For example, AWS_MANAGED or USER_MANAGED.public void setTokenUrl(String tokenUrl)
The URL of the provider's authentication server, to exchange an authorization code for an access token.
tokenUrl
- The URL of the provider's authentication server, to exchange an authorization code for an access token.public String getTokenUrl()
The URL of the provider's authentication server, to exchange an authorization code for an access token.
public OAuth2Properties withTokenUrl(String tokenUrl)
The URL of the provider's authentication server, to exchange an authorization code for an access token.
tokenUrl
- The URL of the provider's authentication server, to exchange an authorization code for an access token.public Map<String,String> getTokenUrlParametersMap()
A map of parameters that are added to the token GET
request.
GET
request.public void setTokenUrlParametersMap(Map<String,String> tokenUrlParametersMap)
A map of parameters that are added to the token GET
request.
tokenUrlParametersMap
- A map of parameters that are added to the token GET
request.public OAuth2Properties withTokenUrlParametersMap(Map<String,String> tokenUrlParametersMap)
A map of parameters that are added to the token GET
request.
tokenUrlParametersMap
- A map of parameters that are added to the token GET
request.public OAuth2Properties addTokenUrlParametersMapEntry(String key, String value)
public OAuth2Properties clearTokenUrlParametersMapEntries()
public String toString()
toString
in class Object
Object.toString()
public OAuth2Properties clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.