public class AttributeInMetadataMatchFunctor extends AbstractMatchFunctor
| Modifier and Type | Field and Description |
|---|---|
private String |
attributeName
The SAML Attribute Name to look for in the metadata.
|
private String |
attributeNameFormat
The SAML Attribute NameFormat to look for in the metadata.
|
private org.slf4j.Logger |
log
Class logger.
|
private boolean |
matchIfMetadataSilent
Whether to return a match if the metadata does not contain an ACS descriptor.
|
private boolean |
onlyIfRequired
Whether optionally requested attributes should be matched.
|
| Constructor and Description |
|---|
AttributeInMetadataMatchFunctor() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doEvaluatePolicyRequirement(ShibbolethFilteringContext filterContext)
Evaluates this matching criteria.
|
protected boolean |
doEvaluateValue(ShibbolethFilteringContext filterContext,
String attributeId,
Object attributeValue)
Evaluates this matching criteria.
|
private RequestedAttribute |
findInMetadata(AttributeConsumingService service,
AttributeEncoder encoder)
Locates a RequestedAttribute object in metadata that matches the eventual "to be encoded" name
represented by the encoder.
|
private RequestedAttribute |
findInMetadata(AttributeConsumingService service,
String name,
String nameFormat)
Locates a RequestedAttribute object in metadata that matches a specific Attribute Name
and NameFormat.
|
boolean |
isMatchIfMetadataSilent()
Gets whether to matched if the metadata contains no AttributeConsumingService.
|
boolean |
isOnlyIfRequired()
Gets whether optionally requested attributes should be matched.
|
private boolean |
match(XMLObject xmlObj,
String attributeValue)
Checks whether an XMLObject's "value" matches a candidate value.
|
void |
setAttributeName(String name)
Set the SAML Attribute Name to look for in the metadata.
|
void |
setAttributeNameFormat(String format)
Set the SAML Attribute Namespace to look for in the metadata.
|
void |
setMatchIfMetadataSilent(boolean flag)
Sets whether to match if the metadata contains no AttributeConsumingService.
|
void |
setOnlyIfRequired(boolean flag)
Sets whether optionally requested attributes should be matched.
|
evaluateDenyRule, evaluatePermitValue, evaluatePolicyRequirementprivate final org.slf4j.Logger log
private boolean onlyIfRequired
private boolean matchIfMetadataSilent
private String attributeName
private String attributeNameFormat
public boolean isOnlyIfRequired()
public void setOnlyIfRequired(boolean flag)
flag - whether optionally requested attributes should be matchedpublic boolean isMatchIfMetadataSilent()
public void setMatchIfMetadataSilent(boolean flag)
flag - whether to match if the metadata contains no AttributeConsumingServicepublic void setAttributeName(String name)
This allows a "look aside" to match a different SAML Attribute Name in the metadata.
name - the Name to look forpublic void setAttributeNameFormat(String format)
This allows a "look aside" to match a different SAML Attribute NameFormat in the metadata.
format - the NameFormat to look forprotected boolean doEvaluatePolicyRequirement(ShibbolethFilteringContext filterContext) throws FilterProcessingException
doEvaluatePolicyRequirement in class AbstractMatchFunctorfilterContext - current filtering contextFilterProcessingException - thrown if the function can not be evaluatedprotected boolean doEvaluateValue(ShibbolethFilteringContext filterContext, String attributeId, Object attributeValue) throws FilterProcessingException
doEvaluateValue in class AbstractMatchFunctorfilterContext - the current filtering contextattributeId - ID of the attribute being evaluatedattributeValue - value of the attribute being evaluatedFilterProcessingException - thrown if the function can not be evaluatedprivate RequestedAttribute findInMetadata(AttributeConsumingService service, AttributeEncoder encoder)
service - the metadata descriptor to searchencoder - the attribute encoder to base the search onprivate RequestedAttribute findInMetadata(AttributeConsumingService service, String name, String nameFormat)
service - the metadata descriptor to searchname - Attribute Name to matchnameFormat - Attribute NameFormat to matchCopyright © 1999-2015. All Rights Reserved.