public class SwedishEidAttributeStatementValidator
extends se.litsec.opensaml.saml2.common.assertion.AbstractAttributeStatementValidator
AttributeStatement
s.
Supports the following ValidationContext
static parameters:
REQUIRED_ATTRIBUTE_SET
: Optional. Holds a AttributeSet
that tells which attributes we require to
find in the assertion.REQUIRED_ATTRIBUTES
: Optional. Holds a collection of strings that are the attribute names that we
require to find in the assertion.Note that the two above parameters may be combined. If no parameter for requested attributes is passed, no validation will be performed.
Modifier and Type | Field and Description |
---|---|
static String |
REQUIRED_ATTRIBUTE_SET
Key for a validation context parameter.
|
static String |
REQUIRED_ATTRIBUTES
Key for a validation context parameter.
|
Constructor and Description |
---|
SwedishEidAttributeStatementValidator() |
Modifier and Type | Method and Description |
---|---|
protected Collection<String> |
getRequiredAttributes(ValidationContext context)
Returns the required attributes.
|
protected ValidationResult |
validateRequiredAttributes(List<Attribute> attributes,
AttributeStatement statement,
Assertion assertion,
ValidationContext context)
Validates that the required attributes have been received by using the optional context parameter
REQUIRED_ATTRIBUTE_SET that holds an AttributeSet and/or the list of attribute names from the
parameter REQUIRED_ATTRIBUTES . |
public static final String REQUIRED_ATTRIBUTE_SET
AttributeSet
holding the required attributes.public static final String REQUIRED_ATTRIBUTES
Collection
of strings holding attribute names of
requested attributes.public SwedishEidAttributeStatementValidator()
protected ValidationResult validateRequiredAttributes(List<Attribute> attributes, AttributeStatement statement, Assertion assertion, ValidationContext context)
REQUIRED_ATTRIBUTE_SET
that holds an AttributeSet
and/or the list of attribute names from the
parameter REQUIRED_ATTRIBUTES
.validateRequiredAttributes
in class se.litsec.opensaml.saml2.common.assertion.AbstractAttributeStatementValidator
protected Collection<String> getRequiredAttributes(ValidationContext context)
context
- the validation contextnull
)Copyright © 2018 Litsec AB. All rights reserved.