aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AttributeProvider.java
diff options
context:
space:
mode:
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AttributeProvider.java')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AttributeProvider.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AttributeProvider.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AttributeProvider.java
index fd35b0c71..2c024e822 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AttributeProvider.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AttributeProvider.java
@@ -1,6 +1,5 @@
package at.gv.egovernment.moa.id.protocols.stork2;
-import javax.activation.UnsupportedDataTypeException;
import javax.servlet.http.HttpServletRequest;
import eu.stork.peps.auth.commons.PersonalAttribute;
@@ -18,15 +17,24 @@ public interface AttributeProvider {
*
* @param attributeName the attribute name
* @return the personal attribute
- * @throws UnsupportedDataTypeException when the provider cannot acquire the specified attribute
+ * @throws UnsupportedAttributeException the unsupported attribute exception
+ * @throws ExternalAttributeRequestRequiredException an attribute request to an external service has to be done
*/
- public PersonalAttribute acquire(String attributeName) throws UnsupportedAttributeException, AttributeRequestOngoingException;
+ public PersonalAttribute acquire(String attributeName) throws UnsupportedAttributeException, ExternalAttributeRequestRequiredException;
/**
+ * Perform redirect.
+ *
+ * @param url the return URL ending with ?artifactId=...
+ */
+ public void performRedirect(String url);
+
+ /**
* Parses the response we got from the external attribute provider.
*
* @param httpReq the http req
* @return the personal attribute
*/
public PersonalAttribute parse(HttpServletRequest httpReq);
+
}