aboutsummaryrefslogtreecommitdiff
path: root/connector/src/main
diff options
context:
space:
mode:
authorlalber <lukas.alber@iaik.tugraz.at>2020-11-13 08:39:00 +0100
committerlalber <lukas.alber@iaik.tugraz.at>2020-11-13 08:39:32 +0100
commit65baff23786c76746f4b188d3e6e59fd112e3030 (patch)
treeb94096d5fe912ef6e905bd5df7eb6b17fd113b48 /connector/src/main
parentb04c31afa0213048367ee6e4eec4fb52dfd59915 (diff)
downloadNational_eIDAS_Gateway-65baff23786c76746f4b188d3e6e59fd112e3030.tar.gz
National_eIDAS_Gateway-65baff23786c76746f4b188d3e6e59fd112e3030.tar.bz2
National_eIDAS_Gateway-65baff23786c76746f4b188d3e6e59fd112e3030.zip
improved Junit tests
Diffstat (limited to 'connector/src/main')
-rw-r--r--connector/src/main/java/at/asitplus/eidas/specific/connector/builder/AuthenticationDataBuilder.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/connector/src/main/java/at/asitplus/eidas/specific/connector/builder/AuthenticationDataBuilder.java b/connector/src/main/java/at/asitplus/eidas/specific/connector/builder/AuthenticationDataBuilder.java
index ef1a1f2b..13cceafb 100644
--- a/connector/src/main/java/at/asitplus/eidas/specific/connector/builder/AuthenticationDataBuilder.java
+++ b/connector/src/main/java/at/asitplus/eidas/specific/connector/builder/AuthenticationDataBuilder.java
@@ -57,7 +57,7 @@ public class AuthenticationDataBuilder extends AbstractAuthenticationDataBuilder
AuthenticationData authData = new AuthenticationData();
boolean isEidModeNew = pendingReq.getServiceProviderConfiguration()
- .isConfigurationValue(MsEidasNodeConstants.PROP_CONFIG_SP_NEW_EID_MODE, false);
+ .isConfigurationValue(MsEidasNodeConstants.PROP_CONFIG_SP_NEW_EID_MODE, false);
if (isEidModeNew) {
authData = (AuthenticationData) super.buildAuthenticationData(pendingReq);
@@ -66,11 +66,11 @@ public class AuthenticationDataBuilder extends AbstractAuthenticationDataBuilder
generateDeprecatedBasicAuthData(authData, pendingReq, authProcessData);
// set specific informations
- authData.setSsoSessionValidTo(new Date(new Date().getTime()
- + MsEidasNodeConstants.DEFAULT_PVP_ASSERTION_VALIDITY * 60 * 1000));
+ authData.setSsoSessionValidTo(
+ new Date(new Date().getTime() + MsEidasNodeConstants.DEFAULT_PVP_ASSERTION_VALIDITY * 60 * 1000));
- } catch (EaafBuilderException | EaafParserException | EaafConfigurationException
- | XPathException | DOMException e) {
+ } catch (EaafBuilderException | EaafParserException
+ | EaafConfigurationException | XPathException | DOMException e) {
log.warn("Can not build authentication data from auth. process information");
throw new EaafAuthenticationException("builder.11", new Object[]{e.getMessage()}, e);
@@ -108,8 +108,7 @@ public class AuthenticationDataBuilder extends AbstractAuthenticationDataBuilder
@Override
protected Pair<String, String> getEncryptedBpkFromPvpAttribute(IAuthProcessDataContainer arg0,
- AuthenticationData arg1,
- ISpConfiguration arg2) throws EaafBuilderException {
+ AuthenticationData arg1, ISpConfiguration arg2) throws EaafBuilderException {
return null;
}