Class ECPContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
org.opensaml.saml.common.messaging.context.ECPContext
- All Implemented Interfaces:
Iterable<BaseContext>
Context, usually attached to a
MessageContext
that carries state associated with an ECP request that is needed during response generation.-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator, BaseContext.DeprecatedContextClassNameLookAside -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether the request was authenticated.private byte[]Generated session key. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Get the session key generated for use by the client and IdP.booleanGet whether the request from the SP was authenticated.setRequestAuthenticated(boolean flag) Set whether the request from the SP was authenticated.setSessionKey(byte[] key) Set the session key generated for use by the client and IdP.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
-
requestAuthenticated
private boolean requestAuthenticatedWhether the request was authenticated. -
sessionKey
@Nullable private byte[] sessionKeyGenerated session key.
-
-
Constructor Details
-
ECPContext
public ECPContext()
-
-
Method Details
-
isRequestAuthenticated
public boolean isRequestAuthenticated()Get whether the request from the SP was authenticated.- Returns:
- true iff the SP request was authenticated
-
setRequestAuthenticated
Set whether the request from the SP was authenticated.- Parameters:
flag- flag to set- Returns:
- this context
-
getSessionKey
@Nullable public byte[] getSessionKey()Get the session key generated for use by the client and IdP.- Returns:
- the generated session key bytes
-
setSessionKey
Set the session key generated for use by the client and IdP.- Parameters:
key- key to set- Returns:
- this context
-