Package net.shibboleth.sp.oidc.context
Class CorrelationCookieStateContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.sp.oidc.context.CorrelationCookieStateContext
- All Implemented Interfaces:
Iterable<org.opensaml.messaging.context.BaseContext>
public class CorrelationCookieStateContext
extends org.opensaml.messaging.context.BaseContext
A context to hold the browser bound correlation cookie referenced from the OAuth state. The cookie is assumed to hold
a JSON object.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
org.opensaml.messaging.context.BaseContext.ContextSetNoRemoveIteratorDecorator, org.opensaml.messaging.context.BaseContext.DeprecatedContextClassNameLookAside -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate net.minidev.json.JSONObjectThe correlation cookie value as a JSON object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minidev.json.JSONObjectGet the cookie value as a JSON object.setValue(net.minidev.json.JSONObject cookieValue) Set the correlation cookie value JSON.Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, ensureSubcontext, ensureSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeFromParent, removeSubcontext, removeSubcontext, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
value
@Nullable private net.minidev.json.JSONObject valueThe correlation cookie value as a JSON object.
-
-
Constructor Details
-
CorrelationCookieStateContext
public CorrelationCookieStateContext()
-
-
Method Details
-
setValue
@Nonnull public CorrelationCookieStateContext setValue(@Nullable net.minidev.json.JSONObject cookieValue) Set the correlation cookie value JSON.- Parameters:
cookieValue- the correlation cookie value JSON.- Returns:
- this context
-
getCorrelationCookieValue
@Nullable public net.minidev.json.JSONObject getCorrelationCookieValue()Get the cookie value as a JSON object.- Returns:
- the cookie value as a JSON object, or null if not set.
-