public class Oauth2AuthenticationResponse extends AbstractAuthenticationResponse
KEY_CODE, KEY_STATE
Constructor and Description |
---|
Oauth2AuthenticationResponse(StateSerDes stateSerDes)
Construct authorization response object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode() |
java.lang.String |
getStateValue()
If the initial request contained a state parameter, the response must also include the exact value from the request.
|
void |
setCode(java.lang.String code)
Set an authorization code.
|
void |
setState(java.lang.String state)
After the state has been retrieved, further calls to this method will
not be reflected in the execution of
AbstractAuthenticationResponse.getState() . |
getState
public Oauth2AuthenticationResponse(StateSerDes stateSerDes)
stateSerDes
- The state serdes@Nullable public java.lang.String getStateValue()
getStateValue
in class AbstractAuthenticationResponse
public void setState(@Nullable java.lang.String state)
AbstractAuthenticationResponse.getState()
.state
- Set state.@Nonnull public java.lang.String getCode()
public void setCode(@Nonnull java.lang.String code)
code
- authorization code.