From ed3410c2cf6a38e9f3c7d986853bd454e15f4637 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Thu, 12 Dec 2019 14:43:07 +0100 Subject: only change interface and method name --- .../specific/connector/verification/AuthnRequestValidator.java | 6 +++--- .../specific/connector/test/AuthnRequestValidatorTest.java | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'connector') diff --git a/connector/src/main/java/at/asitplus/eidas/specific/connector/verification/AuthnRequestValidator.java b/connector/src/main/java/at/asitplus/eidas/specific/connector/verification/AuthnRequestValidator.java index 87c23dee..2e58d863 100644 --- a/connector/src/main/java/at/asitplus/eidas/specific/connector/verification/AuthnRequestValidator.java +++ b/connector/src/main/java/at/asitplus/eidas/specific/connector/verification/AuthnRequestValidator.java @@ -53,11 +53,11 @@ import at.gv.egiz.eaaf.core.exceptions.EaafException; import at.gv.egiz.eaaf.core.exceptions.EaafStorageException; import at.gv.egiz.eaaf.modules.pvp2.api.reqattr.EaafRequestedAttribute; import at.gv.egiz.eaaf.modules.pvp2.api.reqattr.EaafRequestedAttributes; -import at.gv.egiz.eaaf.modules.pvp2.api.validation.IAuthnRequestValidator; +import at.gv.egiz.eaaf.modules.pvp2.api.validation.IAuthnRequestPostProcessor; import at.gv.egiz.eaaf.modules.pvp2.exception.NameIdFormatNotSupportedException; import eu.eidas.auth.commons.protocol.eidas.LevelOfAssurance; -public class AuthnRequestValidator implements IAuthnRequestValidator { +public class AuthnRequestValidator implements IAuthnRequestPostProcessor { private static final Logger log = LoggerFactory.getLogger(AuthnRequestValidator.class); @@ -65,7 +65,7 @@ public class AuthnRequestValidator implements IAuthnRequestValidator { private IConfiguration basicConfig; @Override - public void validate(HttpServletRequest httpReq, IRequest pendingReq, AuthnRequest authnReq, + public void process(HttpServletRequest httpReq, IRequest pendingReq, AuthnRequest authnReq, SPSSODescriptor spSsoDescriptor) throws AuthnRequestValidatorException { try { // validate NameIDPolicy diff --git a/connector/src/test/java/at/asitplus/eidas/specific/connector/test/AuthnRequestValidatorTest.java b/connector/src/test/java/at/asitplus/eidas/specific/connector/test/AuthnRequestValidatorTest.java index ab59cf10..9c5d6036 100644 --- a/connector/src/test/java/at/asitplus/eidas/specific/connector/test/AuthnRequestValidatorTest.java +++ b/connector/src/test/java/at/asitplus/eidas/specific/connector/test/AuthnRequestValidatorTest.java @@ -37,7 +37,7 @@ import at.gv.egiz.eaaf.core.api.idp.IConfiguration; import at.gv.egiz.eaaf.core.exceptions.AuthnRequestValidatorException; import at.gv.egiz.eaaf.core.impl.idp.module.test.TestRequestImpl; import at.gv.egiz.eaaf.core.impl.utils.DomUtils; -import at.gv.egiz.eaaf.modules.pvp2.api.validation.IAuthnRequestValidator; +import at.gv.egiz.eaaf.modules.pvp2.api.validation.IAuthnRequestPostProcessor; import at.gv.egiz.eaaf.modules.pvp2.impl.opensaml.initialize.EaafDefaultSaml2Bootstrap; @RunWith(SpringJUnit4ClassRunner.class) @@ -53,7 +53,7 @@ import at.gv.egiz.eaaf.modules.pvp2.impl.opensaml.initialize.EaafDefaultSaml2Boo public class AuthnRequestValidatorTest { @Autowired private IConfiguration basicConfig; - @Autowired protected IAuthnRequestValidator authRequestValidator; + @Autowired protected IAuthnRequestPostProcessor authRequestValidator; private MockHttpServletRequest httpReq; private MockHttpServletResponse httpResp; @@ -98,7 +98,7 @@ public class AuthnRequestValidatorTest { AuthnRequest authReq = getAuthRequest("/data/pvp2_authn_1.xml"); //test - authRequestValidator.validate(httpReq, pendingReq, authReq, null); + authRequestValidator.process(httpReq, pendingReq, authReq, null); //validate Assert.assertNotNull("spEntityId is null", pendingReq.getRawData(MsEidasNodeConstants.DATA_REQUESTERID)); @@ -134,7 +134,7 @@ public class AuthnRequestValidatorTest { AuthnRequest authReq = getAuthRequest("/data/pvp2_authn_2.xml"); //test - authRequestValidator.validate(httpReq, pendingReq, authReq, null); + authRequestValidator.process(httpReq, pendingReq, authReq, null); //validate Assert.assertNotNull("spEntityId is null", pendingReq.getRawData(MsEidasNodeConstants.DATA_REQUESTERID)); @@ -170,7 +170,7 @@ public class AuthnRequestValidatorTest { AuthnRequest authReq = getAuthRequest("/data/pvp2_authn_3.xml"); //test - authRequestValidator.validate(httpReq, pendingReq, authReq, null); + authRequestValidator.process(httpReq, pendingReq, authReq, null); //validate Assert.assertNotNull("spEntityId is null", pendingReq.getRawData(MsEidasNodeConstants.DATA_REQUESTERID)); -- cgit v1.2.3