Class CriteriaSelfEntityIDResolver
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
net.shibboleth.idp.relyingparty.impl.CriteriaSelfEntityIDResolver
- All Implemented Interfaces:
Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,Resolver<String,CriteriaSet>
public class CriteriaSelfEntityIDResolver
extends AbstractIdentifiedInitializableComponent
implements Resolver<String,CriteriaSet>, IdentifiableComponent
Resolver which uses an instance of
CriteriaRelyingPartyConfigurationResolver to
resolve the self entityID.
The required and allowed criteria are the same as the CriteriaRelyingPartyConfigurationResolver
implementation in use.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.slf4j.LoggerLogger.The CriteriaRelyingPartyConfigurationResolver to which to delegate. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ProfileRequestContextbuildContext(CriteriaSet criteria) Build and populate the synthetic instance ofProfileRequestContextwhich will be passed in the resolution call to the delegate.protected voidprotected voidresolve(CriteriaSet criteria) private EntityDescriptorresolveEntityDescriptor(CriteriaSet criteria) Resolve the EntityDescriptor from the criteria.private StringresolveEntityID(CriteriaSet criteria) Resolve the entityID from the criteria.private RoleDescriptorresolveRoleDescriptor(CriteriaSet criteria) Resolve the RoleDescriptor from the criteria.resolveSingle(CriteriaSet criteria) voidvoidSet theCriteriaRelyingPartyConfigurationResolverinstance to which to delegate.Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
getIdMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
Field Details
-
log
@Nonnull private org.slf4j.Logger logLogger. -
rpcResolver
The CriteriaRelyingPartyConfigurationResolver to which to delegate.
-
-
Constructor Details
-
CriteriaSelfEntityIDResolver
public CriteriaSelfEntityIDResolver()
-
-
Method Details
-
setRelyingPartyConfigurationResolver
public void setRelyingPartyConfigurationResolver(@Nullable CriteriaRelyingPartyConfigurationResolver resolver) Set theCriteriaRelyingPartyConfigurationResolverinstance to which to delegate.- Parameters:
resolver- the relying party resolver
-
setId
- Specified by:
setIdin interfaceIdentifiableComponent- Overrides:
setIdin classAbstractIdentifiedInitializableComponent
-
doInitialize
- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
doDestroy
protected void doDestroy()- Overrides:
doDestroyin classAbstractInitializableComponent
-
resolve
@Nonnull @NonnullElements public Iterable<String> resolve(@Nullable CriteriaSet criteria) throws ResolverException - Specified by:
resolvein interfaceResolver<String,CriteriaSet> - Throws:
ResolverException
-
resolveSingle
- Specified by:
resolveSinglein interfaceResolver<String,CriteriaSet> - Throws:
ResolverException
-
buildContext
Build and populate the synthetic instance ofProfileRequestContextwhich will be passed in the resolution call to the delegate.- Parameters:
criteria- the input criteria- Returns:
- the synthetic context instance, or null if required data is not supplied
-
resolveEntityID
Resolve the entityID from the criteria.- Parameters:
criteria- the input criteria- Returns:
- the input entityID criterion or null if could not be resolved
-
resolveEntityDescriptor
Resolve the EntityDescriptor from the criteria.- Parameters:
criteria- the input criteria- Returns:
- the input entity descriptor criterion, or null if could not be resolved
-
resolveRoleDescriptor
Resolve the RoleDescriptor from the criteria.- Parameters:
criteria- the input criteria- Returns:
- the input role descriptor criterion or null if could not be resolved
-