Class AbstractNameIDFormatExactPolicyRule
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.AbstractNameIDFormatExactPolicyRule
- All Implemented Interfaces:
PolicyRequirementRule
,Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
- Direct Known Subclasses:
IssuerNameIDFormatExactPolicyRule
,RequesterNameIDFormatExactPolicyRule
Checks if the attribute issuer supports the required NameID format.
-
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.Logger
Class logger.private String
The NameID format that needs to be supported by the entity.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 void
protected abstract SSODescriptor
getEntitySSODescriptor
(AttributeFilterContext filterContext) Gets the SSO role descriptor for the entity to be checked.Get the NameID format that needs to be supported by the entity.matches
(AttributeFilterContext filterContext) Checks to see if the metadata for the entity supports the required NameID format.void
setNameIdFormat
(String format) Sets the NameID format that needs to be supported by the entity.Methods inherited from class net.shibboleth.idp.attribute.filter.policyrule.impl.AbstractPolicyRule
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. -
nameIdFormat
The NameID format that needs to be supported by the entity.
-
-
Constructor Details
-
AbstractNameIDFormatExactPolicyRule
public AbstractNameIDFormatExactPolicyRule()
-
-
Method Details
-
getNameIdFormat
Get the NameID format that needs to be supported by the entity.- Returns:
- NameID format that needs to be supported by the entity
-
setNameIdFormat
Sets the NameID format that needs to be supported by the entity.- Parameters:
format
- NameID format that needs to be supported by the entity
-
doInitialize
- Overrides:
doInitialize
in classAbstractPolicyRule
- Throws:
ComponentInitializationException
-
getEntitySSODescriptor
@Nullable protected abstract SSODescriptor getEntitySSODescriptor(@Nonnull AttributeFilterContext filterContext) Gets the SSO role descriptor for the entity to be checked.- Parameters:
filterContext
- current filtering context- Returns:
- the SSO role descriptor of the entity or null if the entity does not have such a descriptor
-
matches
Checks to see if the metadata for the entity supports the required NameID format.- Parameters:
filterContext
- current filter context- Returns:
- true if the entity supports the required NameID format, false otherwise whether the rule holds
-