public class OAuth2FlowState
extends java.lang.Object
HttpConversation.IContext
.Modifier and Type | Field and Description |
---|---|
boolean |
areTokensNew
True indicates that the
usedTokens contains newly acquired tokens,
False indicates that the tokens in this state object have been read from the storage. |
OAuth2TokenWrapper |
usedTokens
The property through which the currently used tokens are accessible.
|
OAuth2ServerSupport |
winningServerSupport
he server support object which recognized the OAuth2 challenge.
|
Constructor and Description |
---|
OAuth2FlowState(OAuth2ServerSupport winningServerSupport)
Initializes this object with the specified winning server support.
|
Modifier and Type | Method and Description |
---|---|
void |
saveToContext(IContext context)
Pair of the
stateFromContext method which saves this object in the specified context. |
static OAuth2FlowState |
stateFromContext(IContext context)
Method that can be used to retrieve a state object from the specified context.
|
public OAuth2ServerSupport winningServerSupport
public OAuth2TokenWrapper usedTokens
public boolean areTokensNew
usedTokens
contains newly acquired tokens,
False indicates that the tokens in this state object have been read from the storage.public OAuth2FlowState(OAuth2ServerSupport winningServerSupport)
winningServerSupport
- the winning server support object, must be non-nullpublic static OAuth2FlowState stateFromContext(IContext context)
context
- the context to read a state object from, must be non-nullpublic void saveToContext(IContext context)
stateFromContext
method which saves this object in the specified context.context
- the context to read a state object from, must be non-null