@Introspected public class AuthorizationCodeGrant extends java.lang.Object implements SecureGrant, AsMap
Constructor and Description |
---|
AuthorizationCodeGrant()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClientId() |
java.lang.String |
getClientSecret() |
java.lang.String |
getCode() |
java.lang.String |
getGrantType() |
java.lang.String |
getRedirectUri() |
void |
setClientId(java.lang.String clientId)
Sets the client id in the grant.
|
void |
setClientSecret(java.lang.String clientSecret)
Sets the client secret in the grant.
|
void |
setCode(java.lang.String code) |
void |
setGrantType(java.lang.String grantType) |
void |
setRedirectUri(java.lang.String redirectUri) |
java.util.Map<java.lang.String,java.lang.String> |
toMap() |
@NonNull public java.lang.String getGrantType()
public void setGrantType(@NonNull java.lang.String grantType)
grantType
- OAuth 2.0 Grant Type.@NonNull public java.lang.String getClientId()
public void setClientId(@NonNull java.lang.String clientId)
SecureGrant
setClientId
in interface SecureGrant
clientId
- Application's Client identifier.public void setClientSecret(java.lang.String clientSecret)
SecureGrant
setClientSecret
in interface SecureGrant
clientSecret
- Application's Client clientSecret.public java.lang.String getClientSecret()
@NonNull public java.lang.String getRedirectUri()
public void setRedirectUri(@NonNull java.lang.String redirectUri)
redirectUri
- Redirection URI to which the response will be sent.@NonNull public java.lang.String getCode()
public void setCode(@NonNull java.lang.String code)
code
- An authorization code.