Class AbstractRegistrationAuthorityPolicyRule
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.attribute.filter.policyrule.impl.AbstractPolicyRule
net.shibboleth.idp.attribute.filter.policyrule.saml.impl.AbstractRegistrationAuthorityPolicyRule
- All Implemented Interfaces:
PolicyRequirementRule
,Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
- Direct Known Subclasses:
AttributeIssuerRegistrationAuthorityPolicyRule
,AttributeRequesterRegistrationAuthorityPolicyRule
public abstract class AbstractRegistrationAuthorityPolicyRule extends AbstractPolicyRule
Base class for rules operating on the RPI extension in metadata.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
PolicyRequirementRule.Tristate
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.Logger
log
Class logger.private boolean
matchIfMetadataSilent
What to say if no MDRPI is present.private Set<String>
registrars
The registrars to match against.Fields inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
MATCHES_ALL, MATCHES_NONE, REQUIREMENT_RULE_FAILS
-
Constructor Summary
Constructors Constructor Description AbstractRegistrationAuthorityPolicyRule()
-
Method Summary
Modifier and Type Method Description protected abstract EntityDescriptor
getEntityMetadata(AttributeFilterContext filterContext)
Gets the entity descriptor for the rule to check.Set<String>
getRegistrars()
Get the candidate registrars.private RegistrationInfo
getRegistrationInfo(AttributeFilterContext filterContext)
Look for theRegistrationInfo
inside the peer's entity description.boolean
isMatchIfMetadataSilent()
Get what to do if there is no mdrpi/extensions.PolicyRequirementRule.Tristate
matches(AttributeFilterContext filterContext)
Evaluate what this rule means.void
setMatchIfMetadataSilent(boolean value)
Set what to do if there is no mdrpi/extensions.void
setRegistrars(Collection<String> theIssuers)
Set the candidate registrars.Methods inherited from class net.shibboleth.idp.attribute.filter.policyrule.impl.AbstractPolicyRule
doInitialize, getLogPrefix
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
getId
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
registrars
The registrars to match against. -
matchIfMetadataSilent
private boolean matchIfMetadataSilentWhat to say if no MDRPI is present.
-
-
Constructor Details
-
AbstractRegistrationAuthorityPolicyRule
public AbstractRegistrationAuthorityPolicyRule()
-
-
Method Details
-
getRegistrars
Get the candidate registrars.- Returns:
- the issuers
-
setRegistrars
Set the candidate registrars.- Parameters:
theIssuers
- candidate registrars
-
isMatchIfMetadataSilent
public boolean isMatchIfMetadataSilent()Get what to do if there is no mdrpi/extensions.- Returns:
- Returns the matchIfMetadataSilent.
-
setMatchIfMetadataSilent
public void setMatchIfMetadataSilent(boolean value)Set what to do if there is no mdrpi/extensions.- Parameters:
value
- The matchIfMetadataSilent to set.
-
getEntityMetadata
@Nullable protected abstract EntityDescriptor getEntityMetadata(@Nonnull AttributeFilterContext filterContext)Gets the entity descriptor for the rule to check.- Parameters:
filterContext
- current filter request context- Returns:
- entity descriptor for the entity to check or null if not found
-
getRegistrationInfo
@Nullable private RegistrationInfo getRegistrationInfo(@Nonnull AttributeFilterContext filterContext)Look for theRegistrationInfo
inside the peer's entity description.- Parameters:
filterContext
- the context of the operation- Returns:
- The registration info for the SP in the context
-
matches
Evaluate what this rule means.- Parameters:
filterContext
- the context.- Returns:
- whether the rule holds
-