Class RelyingPartyContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.profile.context.RelyingPartyContext
- All Implemented Interfaces:
Iterable<BaseContext>
BaseContext
containing relying party specific information, usually a
subcontext of ProfileRequestContext
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ProfileConfiguration
Profile configuration that is in use.private RelyingPartyConfiguration
The relying party configuration.private String
The identifier for the relying party.private BaseContext
A pointer to a context tree containing identifying material for the relying party.private Function<RelyingPartyContext,
String> A lookup strategy for deriving a relying party ID based on contained information.private Function<RelyingPartyContext,
Boolean> A lookup strategy for deriving verification based on the context.private Boolean
Optional flag indicating whether verification was done. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the relying party configuration.Get the configuration for the request profile currently being processed.Get the unique identifier of the relying party.Get the context tree containing identifying information for this relying party.(package private) Function<RelyingPartyContext,
String> Get the lookup strategy for a non-explicit relying party ID.(package private) Function<RelyingPartyContext,
Boolean> Get the lookup strategy for a non-explicit verification determination.boolean
Get whether the relying party was verified in some fashion.Set the configuration to use when processing requests for this relying party.setProfileConfig
(ProfileConfiguration config) Set the configuration for the request profile currently being processed.setRelyingPartyId
(String rpId) Set the unique identifier of the relying party.Set the context tree containing identifying information for this relying party.Set the lookup strategy for a non-explicit relying party ID.Set the lookup strategy for a non-explicit verification determination.setVerified
(Boolean flag) Set whether the relying party was verified in some fashion.Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeSubcontext, removeSubcontext, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
verified
Optional flag indicating whether verification was done. -
relyingPartyId
The identifier for the relying party. -
relyingPartyIdContextTree
A pointer to a context tree containing identifying material for the relying party. -
verificationLookupStrategy
A lookup strategy for deriving verification based on the context. -
relyingPartyIdLookupStrategy
A lookup strategy for deriving a relying party ID based on contained information. -
relyingPartyConfiguration
The relying party configuration. -
profileConfiguration
Profile configuration that is in use.
-
-
Constructor Details
-
RelyingPartyContext
public RelyingPartyContext()
-
-
Method Details
-
isVerified
public boolean isVerified()Get whether the relying party was verified in some fashion.- Returns:
- true iff the relying party's identity was verified
-
setVerified
Set whether the relying party was verified in some fashion.- Parameters:
flag
- explicit value for the verified setting- Returns:
- this context
-
getRelyingPartyId
Get the unique identifier of the relying party.- Returns:
- unique identifier of the relying party
-
setRelyingPartyId
Set the unique identifier of the relying party.- Parameters:
rpId
- the relying party identifier, or null- Returns:
- this context
-
getRelyingPartyIdContextTree
Get the context tree containing identifying information for this relying party.The subtree root may, but need not, be an actual subcontext of this context.
- Returns:
- context tree
-
setRelyingPartyIdContextTree
Set the context tree containing identifying information for this relying party.The subtree root may, but need not, be an actual subcontext of this context.
- Parameters:
root
- root of context tree- Returns:
- this context
-
getVerificationLookupStrategy
Get the lookup strategy for a non-explicit verification determination.- Returns:
- lookup strategy
-
setVerificationLookupStrategy
@Nonnull public RelyingPartyContext setVerificationLookupStrategy(@Nonnull Function<RelyingPartyContext, Boolean> strategy) Set the lookup strategy for a non-explicit verification determination.- Parameters:
strategy
- lookup strategy- Returns:
- this context
-
getRelyingPartyIdLookupStrategy
Get the lookup strategy for a non-explicit relying party ID.- Returns:
- lookup strategy
-
setRelyingPartyIdLookupStrategy
@Nonnull public RelyingPartyContext setRelyingPartyIdLookupStrategy(@Nonnull Function<RelyingPartyContext, String> strategy) Set the lookup strategy for a non-explicit relying party ID.- Parameters:
strategy
- lookup strategy- Returns:
- this context
-
getConfiguration
Get the relying party configuration.- Returns:
- the relying party configuration, or null
-
setConfiguration
Set the configuration to use when processing requests for this relying party.- Parameters:
config
- configuration to use when processing requests for this relying party, or null- Returns:
- this context
-
getProfileConfig
Get the configuration for the request profile currently being processed.- Returns:
- profile configuration for the request profile currently being processed, or null
-
setProfileConfig
Set the configuration for the request profile currently being processed.- Parameters:
config
- configuration for the request profile currently being processed, or null- Returns:
- this context
-