public class SwedishEidSubjectConfirmationValidator extends AbstractSubjectConfirmationValidator
Constructor and Description |
---|
SwedishEidSubjectConfirmationValidator() |
Modifier and Type | Method and Description |
---|---|
protected ValidationResult |
doValidate(SubjectConfirmation confirmation,
Assertion assertion,
ValidationContext context)
Extends the validator with checks for the Swedish eID Framework.
|
String |
getServicedMethod()
Returns
SubjectConfirmation.METHOD_BEARER . |
protected ValidationResult |
validateAddress(SubjectConfirmation confirmation,
Assertion assertion,
ValidationContext context)
Overrides the default implementation.
|
protected ValidationResult |
validateInResponseTo(SubjectConfirmation confirmation,
Assertion assertion,
ValidationContext context)
Ensures that the
InResponseTo attribute is present and that it matches the ID of the AuthnRequest . |
validate, validateNotBefore, validateNotOnOrAfter, validateRecipient
public SwedishEidSubjectConfirmationValidator()
public String getServicedMethod()
SubjectConfirmation.METHOD_BEARER
.protected ValidationResult doValidate(SubjectConfirmation confirmation, Assertion assertion, ValidationContext context) throws AssertionValidationException
doValidate
in class AbstractSubjectConfirmationValidator
AssertionValidationException
protected ValidationResult validateInResponseTo(SubjectConfirmation confirmation, Assertion assertion, ValidationContext context)
InResponseTo
attribute is present and that it matches the ID of the AuthnRequest
.
The ID is found in the context
parameter under the key CoreValidatorParameters.AUTHN_REQUEST_ID
or
from the object stored under CoreValidatorParameters.AUTHN_REQUEST
.confirmation
- the subject confirmation elementassertion
- the assertioncontext
- the validation contextprotected ValidationResult validateAddress(SubjectConfirmation confirmation, Assertion assertion, ValidationContext context) throws AssertionValidationException
validateAddress
in class AbstractSubjectConfirmationValidator
AssertionValidationException
Copyright © 2018 Litsec AB. All rights reserved.