package at.gv.egovernment.moa.id.protocols.eidas; import org.springframework.beans.factory.config.BeanDefinition; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import at.gv.egiz.eaaf.core.impl.idp.controller.protocols.RequestImpl; import eu.eidas.auth.commons.attribute.ImmutableAttributeMap; import eu.eidas.auth.commons.protocol.IAuthenticationRequest; @Component("EIDASData") @Scope(value = BeanDefinition.SCOPE_PROTOTYPE) public class EIDASData extends RequestImpl { public static final String REQ_PARAM_eIDAS_AUTHN_TRANSIENT_ID = "transiendIDRequested"; /** The Constant serialVersionUID. */ private static final long serialVersionUID = 8765755670214923910L; /** The attributes requested by the eIDaS. */ private ImmutableAttributeMap attributes; /** The incoming eIDaS SAML2 AuthnRequest. */ private IAuthenticationRequest authnRequest; /** The ip address of the requester. */ private String remoteIPAddress; private String remoteRelayState; /** * Gets the eidas requested attributes. * * @return the requested attributes */ public ImmutableAttributeMap getEidasRequestedAttributes() { return attributes; } /** * Sets the eidas requested attributes. * * @param immutableAttributeMap the requested attributes */ public void setEidasRequestedAttributes(ImmutableAttributeMap immutableAttributeMap) { attributes = immutableAttributeMap; } /** * Gets the eidas request. * * @return the eidas request */ public IAuthenticationRequest getEidasRequest() { return authnRequest; } /** * Sets the eidas request. * * @param request the new eidas request */ public void setEidasRequest(IAuthenticationRequest request) { authnRequest = request; } /** * Gets the remote address. * * @return the remote address */ public String getRemoteAddress() { return remoteIPAddress; } /** * Sets the remote address. * * @param remoteIP the new remote address */ public void setRemoteAddress(String remoteIP) { remoteIPAddress = remoteIP; } /** * Gets the remote relay state. * * @return the remote relay state */ public String getRemoteRelayState() { return remoteRelayState; } /** * Sets the remote relay state. * * @param relayState the new remote relay state */ public void setRemoteRelayState(String relayState) { remoteRelayState = relayState; } }