Class AbstractProtocolSupportPolicyRule
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.attribute.filter.policyrule.impl.AbstractPolicyRule
net.shibboleth.idp.attribute.filter.policyrule.saml.impl.AbstractProtocolSupportPolicyRule
- All Implemented Interfaces:
PolicyRequirementRule,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
IssuerProtocolSupportPolicyRule,ProxiedRequesterProtocolSupportPolicyRule,RequesterProtocolSupportPolicyRule
Base class for Policy Rules that check whether a particular protocol is available for the supplied role.
Given the RoleDescriptor, this class does the match.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
PolicyRequirementRule.Tristate -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private StringWhat we are checking against.Fields inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
MATCHES_ALL, MATCHES_NONE, REQUIREMENT_RULE_FAILS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGetprotocol.protected abstract RoleDescriptorgetRoleDescriptor(AttributeFilterContext filterContext) Gets theRoleDescriptorwe are interested in.matches(AttributeFilterContext filterContext) Evaluate what this rule means.voidsetProtocol(String what) Setprotocol.Methods inherited from class net.shibboleth.idp.attribute.filter.policyrule.impl.AbstractPolicyRule
getLogPrefixMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, 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.shared.component.IdentifiedComponent
getId
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
protocol
What we are checking against.
-
-
Constructor Details
-
AbstractProtocolSupportPolicyRule
public AbstractProtocolSupportPolicyRule()
-
-
Method Details
-
doInitialize
- Overrides:
doInitializein classAbstractPolicyRule- Throws:
ComponentInitializationException
-
getProtocol
Getprotocol.- Returns:
protocol
-
setProtocol
Setprotocol.- Parameters:
what- thing to set.
-
matches
@Nonnull public PolicyRequirementRule.Tristate matches(@Nonnull AttributeFilterContext filterContext) Evaluate what this rule means.- Parameters:
filterContext- the context.- Returns:
- whether the rule holds
-
getRoleDescriptor
@Nullable protected abstract RoleDescriptor getRoleDescriptor(@Nonnull AttributeFilterContext filterContext) Gets theRoleDescriptorwe are interested in.- Parameters:
filterContext- current filter request context- Returns:
- the RoleDescriptr
-