Package net.shibboleth.oidc.profile.core
Class StateToken
java.lang.Object
net.shibboleth.oidc.profile.core.StateToken
State token holder class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JSONObjectThe JSON object form of the state token if the state is encoded as a JSON object.private final StringThe value of the state token in its serialized form ready to be added to an OAuth request. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
The value of the state token in its serialized form ready to be added to an OAuth request. -
json
The JSON object form of the state token if the state is encoded as a JSON object.
-
-
Constructor Details
-
StateToken
Constructor.- Parameters:
stateValue- the value of the state token in its serialized form, can be nulljsonState- the JSON object form of the state token, can be null.
-
-
Method Details
-
getValue
Get the value of the state token in its serialized form ready to be added to an OAuth request.- Returns:
- the state token value
-
getJson
Get the JSON object form of the state token.- Returns:
- the JSON object
-