aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2019-12-12 14:43:07 +0100
committerThomas Lenz <thomas.lenz@egiz.gv.at>2019-12-12 14:43:07 +0100
commited3410c2cf6a38e9f3c7d986853bd454e15f4637 (patch)
tree9aff1db8ae40c471f6a8bb555f62641ba23bd115
parent9cf3addb9bf53257d9c02cc5d3f5b5d00d6fc130 (diff)
downloadNational_eIDAS_Gateway-ed3410c2cf6a38e9f3c7d986853bd454e15f4637.tar.gz
National_eIDAS_Gateway-ed3410c2cf6a38e9f3c7d986853bd454e15f4637.tar.bz2
National_eIDAS_Gateway-ed3410c2cf6a38e9f3c7d986853bd454e15f4637.zip
only change interface and method name
-rw-r--r--connector/src/main/java/at/asitplus/eidas/specific/connector/verification/AuthnRequestValidator.java6
-rw-r--r--connector/src/test/java/at/asitplus/eidas/specific/connector/test/AuthnRequestValidatorTest.java10
2 files changed, 8 insertions, 8 deletions
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));