aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas <>2023-12-07 15:57:39 +0100
committerThomas <>2023-12-07 15:57:39 +0100
commit3af746e70a157c2f9d46a81f35167dd00e74bd53 (patch)
treec5a5e43ffbb420cbd4d6189d5381214fb268ad2d
parentad23489ede03ffa7386e5c45fe9330cbcf57fc37 (diff)
downloadNational_eIDAS_Gateway-3af746e70a157c2f9d46a81f35167dd00e74bd53.tar.gz
National_eIDAS_Gateway-3af746e70a157c2f9d46a81f35167dd00e74bd53.tar.bz2
National_eIDAS_Gateway-3af746e70a157c2f9d46a81f35167dd00e74bd53.zip
refact(proxyservie): simplify method API
-rw-r--r--modules/eidas_proxy-sevice/src/main/java/at/asitplus/eidas/specific/modules/msproxyservice/protocol/ProxyServiceAuthenticationAction.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/eidas_proxy-sevice/src/main/java/at/asitplus/eidas/specific/modules/msproxyservice/protocol/ProxyServiceAuthenticationAction.java b/modules/eidas_proxy-sevice/src/main/java/at/asitplus/eidas/specific/modules/msproxyservice/protocol/ProxyServiceAuthenticationAction.java
index 8fc54e39..f3dcb968 100644
--- a/modules/eidas_proxy-sevice/src/main/java/at/asitplus/eidas/specific/modules/msproxyservice/protocol/ProxyServiceAuthenticationAction.java
+++ b/modules/eidas_proxy-sevice/src/main/java/at/asitplus/eidas/specific/modules/msproxyservice/protocol/ProxyServiceAuthenticationAction.java
@@ -242,7 +242,7 @@ public class ProxyServiceAuthenticationAction implements IAction {
IEidAuthData eidAuthData) {
eidasReq.getRequestedAttributes().getAttributeMap().keySet().stream()
.forEach(el -> injectEidasAttribute(attributeMap, eidAuthData,
- el.getNameUri().toString(), eidAuthData.isUseMandate(), el.isRequired()));
+ el.getNameUri().toString(), el.isRequired()));
}
@@ -251,14 +251,14 @@ public class ProxyServiceAuthenticationAction implements IAction {
ImmutableAttributeMap requestedAttributes) {
attrRegistry.getRepresentativeAttributesToAddByDefault()
.filter(el -> requestedAttributes.getAttributeValuesByNameUri(el) == null)
- .forEach(el -> injectEidasAttribute(attributeMap, eidAuthData, el, true, true));
+ .forEach(el -> injectEidasAttribute(attributeMap, eidAuthData, el, true));
}
private void injectEidasAttribute(ImmutableAttributeMap.Builder attributeMap, IEidAuthData eidAuthData,
- String eidasAttrName, boolean mandatesUsed, boolean isRequired) {
+ String eidasAttrName, boolean isRequired) {
final Optional<String> releatedIdaAttribute =
- attrRegistry.mapEidasAttributeToSpecificIdaAttribute(eidasAttrName, mandatesUsed);
+ attrRegistry.mapEidasAttributeToSpecificIdaAttribute(eidasAttrName, eidAuthData.isUseMandate());
if (releatedIdaAttribute.isPresent()) {
log.trace("Mapping IDA attribute: {} to eIDAS attribute: {}", releatedIdaAttribute.get(),
eidasAttrName);