use of uk.gov.ida.saml.core.security.AssertionsDecrypters in project verify-hub by alphagov.
the class IdpResponseValidatorTest method setUp.
@BeforeEach
public void setUp() {
validator = new IdpResponseValidator(samlResponseSignatureValidator, new AssertionsDecrypters(List.of(assertionDecrypter, badAssertionDecrypter)), samlAssertionsSignatureValidator, encryptedResponseFromIdpValidator, responseDestinationValidator, responseAssertionsFromIdpValidator);
final Logger logger = (Logger) LoggerFactory.getLogger(IdpResponseValidator.class.getSimpleName());
logger.addAppender(mockAppender);
logger.setLevel(Level.WARN);
}
use of uk.gov.ida.saml.core.security.AssertionsDecrypters in project verify-hub by alphagov.
the class HubTransformersFactory method getResponseToInboundResponseFromMatchingServiceTransformer.
public DecoratedSamlResponseToInboundResponseFromMatchingServiceTransformer getResponseToInboundResponseFromMatchingServiceTransformer(SigningKeyStore signingKeyStore, IdaKeyStore keyStore, String hubEntityId) {
ResponseAssertionsFromMatchingServiceValidator responseAssertionsFromMatchingServiceValidator = new ResponseAssertionsFromMatchingServiceValidator(new AssertionValidator(new IssuerValidator(), new AssertionSubjectValidator(), new AssertionAttributeStatementValidator(), new BasicAssertionSubjectConfirmationValidator()), hubEntityId);
InboundResponseFromMatchingServiceUnmarshaller inboundResponseFromMatchingServiceUnmarshaller = new InboundResponseFromMatchingServiceUnmarshaller(getAssertionToPassthroughAssertionTransformer(), new MatchingServiceIdaStatusUnmarshaller());
SignatureValidator signatureValidator = getSignatureValidator(signingKeyStore);
MatchingServiceResponseValidator matchingServiceResponseValidator = new MatchingServiceResponseValidator(new EncryptedResponseFromMatchingServiceValidator(), getSamlResponseSignatureValidator(signatureValidator), new AssertionsDecrypters(getSamlResponseAssertionDecrypters(keyStore)), getSamlAssertionsSignatureValidator(signatureValidator), responseAssertionsFromMatchingServiceValidator);
return new DecoratedSamlResponseToInboundResponseFromMatchingServiceTransformer(matchingServiceResponseValidator, inboundResponseFromMatchingServiceUnmarshaller);
}
use of uk.gov.ida.saml.core.security.AssertionsDecrypters in project verify-hub by alphagov.
the class MatchingServiceResponseValidatorTest method setUp.
@BeforeEach
public void setUp() {
validator = new MatchingServiceResponseValidator(encryptedResponseFromMatchingServiceValidator, samlResponseSignatureValidator, new AssertionsDecrypters(List.of(assertionDecrypter, badAssertionDecrypter)), samlAssertionsSignatureValidator, responseAssertionsFromMatchingServiceValidator);
final Logger logger = (Logger) LoggerFactory.getLogger(MatchingServiceResponseValidator.class.getSimpleName());
logger.addAppender(mockAppender);
logger.setLevel(Level.WARN);
}
Aggregations