public class RequestContext extends Object implements Serializable
The Request Context and its attributes would be used from the initiation of the authentication request until the authentication completion of the user.
| Constructor and Description |
|---|
RequestContext() |
RequestContext(com.nimbusds.oauth2.sdk.id.State state,
com.nimbusds.openid.connect.sdk.Nonce nonce) |
| Modifier and Type | Method and Description |
|---|---|
com.nimbusds.openid.connect.sdk.Nonce |
getNonce()
Returns the nonce.
|
Object |
getParameter(String key)
Returns the object for the particular key.
|
com.nimbusds.oauth2.sdk.id.State |
getState()
Returns the state.
|
void |
setNonce(com.nimbusds.openid.connect.sdk.Nonce nonce)
Sets the nonce.
|
void |
setParameter(String key,
Object value)
Sets additional parameter to the Request Context.
|
void |
setState(com.nimbusds.oauth2.sdk.id.State state)
Sets the state.
|
public RequestContext(com.nimbusds.oauth2.sdk.id.State state,
com.nimbusds.openid.connect.sdk.Nonce nonce)
public RequestContext()
public com.nimbusds.oauth2.sdk.id.State getState()
State object for the request.public void setState(com.nimbusds.oauth2.sdk.id.State state)
state - The state object.public com.nimbusds.openid.connect.sdk.Nonce getNonce()
Nonce object for the request.public void setNonce(com.nimbusds.openid.connect.sdk.Nonce nonce)
nonce - The nonce object.public Object getParameter(String key)
key - The String value of the key.Copyright © 2021 WSO2. All rights reserved.