@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AuthorizationCodeProperties extends Object implements Serializable, Cloneable, StructuredPojo
The set of properties required for the the OAuth2 AUTHORIZATION_CODE
grant type workflow.
Constructor and Description |
---|
AuthorizationCodeProperties() |
Modifier and Type | Method and Description |
---|---|
AuthorizationCodeProperties |
clone() |
boolean |
equals(Object obj) |
String |
getAuthorizationCode()
An authorization code to be used in the third leg of the
AUTHORIZATION_CODE grant workflow. |
String |
getRedirectUri()
The redirect URI where the user gets redirected to by authorization server when issuing an authorization code.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAuthorizationCode(String authorizationCode)
An authorization code to be used in the third leg of the
AUTHORIZATION_CODE grant workflow. |
void |
setRedirectUri(String redirectUri)
The redirect URI where the user gets redirected to by authorization server when issuing an authorization code.
|
String |
toString()
Returns a string representation of this object.
|
AuthorizationCodeProperties |
withAuthorizationCode(String authorizationCode)
An authorization code to be used in the third leg of the
AUTHORIZATION_CODE grant workflow. |
AuthorizationCodeProperties |
withRedirectUri(String redirectUri)
The redirect URI where the user gets redirected to by authorization server when issuing an authorization code.
|
public void setAuthorizationCode(String authorizationCode)
An authorization code to be used in the third leg of the AUTHORIZATION_CODE
grant workflow. This is
a single-use code which becomes invalid once exchanged for an access token, thus it is acceptable to have this
value as a request parameter.
authorizationCode
- An authorization code to be used in the third leg of the AUTHORIZATION_CODE
grant workflow.
This is a single-use code which becomes invalid once exchanged for an access token, thus it is acceptable
to have this value as a request parameter.public String getAuthorizationCode()
An authorization code to be used in the third leg of the AUTHORIZATION_CODE
grant workflow. This is
a single-use code which becomes invalid once exchanged for an access token, thus it is acceptable to have this
value as a request parameter.
AUTHORIZATION_CODE
grant workflow.
This is a single-use code which becomes invalid once exchanged for an access token, thus it is acceptable
to have this value as a request parameter.public AuthorizationCodeProperties withAuthorizationCode(String authorizationCode)
An authorization code to be used in the third leg of the AUTHORIZATION_CODE
grant workflow. This is
a single-use code which becomes invalid once exchanged for an access token, thus it is acceptable to have this
value as a request parameter.
authorizationCode
- An authorization code to be used in the third leg of the AUTHORIZATION_CODE
grant workflow.
This is a single-use code which becomes invalid once exchanged for an access token, thus it is acceptable
to have this value as a request parameter.public void setRedirectUri(String redirectUri)
The redirect URI where the user gets redirected to by authorization server when issuing an authorization code. The URI is subsequently used when the authorization code is exchanged for an access token.
redirectUri
- The redirect URI where the user gets redirected to by authorization server when issuing an authorization
code. The URI is subsequently used when the authorization code is exchanged for an access token.public String getRedirectUri()
The redirect URI where the user gets redirected to by authorization server when issuing an authorization code. The URI is subsequently used when the authorization code is exchanged for an access token.
public AuthorizationCodeProperties withRedirectUri(String redirectUri)
The redirect URI where the user gets redirected to by authorization server when issuing an authorization code. The URI is subsequently used when the authorization code is exchanged for an access token.
redirectUri
- The redirect URI where the user gets redirected to by authorization server when issuing an authorization
code. The URI is subsequently used when the authorization code is exchanged for an access token.public String toString()
toString
in class Object
Object.toString()
public AuthorizationCodeProperties clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.