summaryrefslogtreecommitdiff
path: root/eaaf_core_utils
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2020-10-15 17:11:49 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2020-10-15 17:11:49 +0200
commit3a3ab7004fb50ed0bc03588a3a24dc1cae0ed2ae (patch)
tree8bc55381eea945fe42ffbd74a7107820ec8998cc /eaaf_core_utils
parent986fe4f15ea63cdd571bcf6c11f7774356db23d5 (diff)
downloadEAAF-Components-3a3ab7004fb50ed0bc03588a3a24dc1cae0ed2ae.tar.gz
EAAF-Components-3a3ab7004fb50ed0bc03588a3a24dc1cae0ed2ae.tar.bz2
EAAF-Components-3a3ab7004fb50ed0bc03588a3a24dc1cae0ed2ae.zip
add definitions for PVP2 R-Profile http-headers
Diffstat (limited to 'eaaf_core_utils')
-rw-r--r--eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/http/pvp/PvpRProfileHttpHeaders.java70
1 files changed, 70 insertions, 0 deletions
diff --git a/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/http/pvp/PvpRProfileHttpHeaders.java b/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/http/pvp/PvpRProfileHttpHeaders.java
new file mode 100644
index 00000000..e97c06b1
--- /dev/null
+++ b/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/http/pvp/PvpRProfileHttpHeaders.java
@@ -0,0 +1,70 @@
+package at.gv.egiz.eaaf.core.impl.http.pvp;
+
+/**
+ * PVP2 R-Profile HTTP-Header definitions
+ *
+ * @author tlenz
+ *
+ */
+public class PvpRProfileHttpHeaders {
+
+ //PVP 1.x headers
+ public static final String PVP_1X_VALUE_VERSION_PREFIX = "1.";
+
+ public static final String PVP_1X_VERSION = "X-VERSION";
+ public static final String PVP_1X_USERID = "X-AUTHENTICATE-UserID";
+ public static final String PVP_1X_GID = "X-AUTHENTICATE-GVGID";
+ public static final String PVP_1X_PARTICIPANT_ID = "X-AUTHENTICATE-PARTICIPANTID";
+ public static final String PVP_1X_GV_OU_ID = "X-AUTHENTICATE-GVOUID";
+ public static final String PVP_1X_OU = "X-AUTHENTICATE-OU";
+ public static final String PVP_1X_FUNCTION = "X-AUTHENTICATE-GVFUNCTION";
+ public static final String PVP_1X_SECCLASS = "X-AUTHENTICATE-gvSecClass";
+ public static final String PVP_1X_CN = "X-AUTHENTICATE-cn";
+ public static final String PVP_1X_COST_CENTER_ID = "X-ACCOUNTING-CostCenterId";
+ public static final String PVP_1X_INVOICE_RECPT_ID = "X-ACCOUNTING-InvoiceRecptId";
+ public static final String PVP_1X_ROLES = "X-AUTHORIZE-ROLES";
+
+ //PVP 2.x headers
+ public static final String PVP_2X_VALUE_VERSION_PREFIX = "2.";
+
+ public static final String PVP_2X_VERSION = "X-PVP-VERSION";
+ public static final String PVP_2X_USERID = "X-PVP-USERID";
+ public static final String PVP_2X_GID = "X-PVP-GID";
+ public static final String PVP_2X_PARTICIPANT_ID = "X-PVP-PARTICIPANT-ID";
+ public static final String PVP_2X_GV_OU_ID = "X-PVP-OU-GV-OU-ID";
+ public static final String PVP_2X_OU = "X-PVP-OU";
+ public static final String PVP_2X_FUNCTION = "X-PVP-FUNCTION";
+ public static final String PVP_2X_SECCLASS = "X-PVP-SECCLASS";
+ public static final String PVP_2X_PRINCIPAL_NAME = "X-PVP-PRINCIPAL-NAME";
+ public static final String PVP_2X_BINDING = "X-PVP-BINDING";
+ public static final String PVP_2X_OU_OKZ = "X-PVP-OU-OKZ";
+ public static final String PVP_2X_COST_CENTER_ID = "X-PVP-COST-CENTER-ID";
+ public static final String PVP_2X_INVOICE_RECPT_ID = "X-PVP-INVOICE-RECPT-ID";
+ public static final String PVP_2X_ROLES = "X-PVP-ROLES";
+
+ public static final String PVP_ERROR_440_CODE = "440";
+ public static final String PVP_ERROR_440_MSG = "Mandatory PVP-Header {0} fehlt";
+ public static final String PVP_ERROR_441_CODE = "441";
+ public static final String PVP_ERROR_441_MSG = "Werte in X-PVP-ROLES haben ungültiges Format";
+ public static final String PVP_ERROR_442_CODE = "442";
+ public static final String PVP_ERROR_442_MSG = "Kein zulässiges Recht in X-PVP-ROLES";
+ public static final String PVP_ERROR_443_CODE = "443";
+ public static final String PVP_ERROR_443_MSG = "Die UserId ist am Anwendungsportal gesperrt";
+ public static final String PVP_ERROR_444_CODE = "444";
+ public static final String PVP_ERROR_444_MSG =
+ "Stammportal ist für Anfragen des angegebenen Participants nicht berechtigt";
+ public static final String PVP_ERROR_445_CODE = "445";
+ public static final String PVP_ERROR_445_MSG = "Participant am Anwendungsportal nicht registriert";
+ public static final String PVP_ERROR_490_CODE = "490";
+ public static final String PVP_ERROR_490_MSG = "Zertifikatsüberprüfung fehlgeschlagen. Grund: {0}";
+ public static final String PVP_ERROR_493_CODE = "493";
+ public static final String PVP_ERROR_493_MSG = "Keine Berechtigung für diese Anwendung im Stammportal";
+ public static final String PVP_ERROR_494_CODE = "494";
+ public static final String PVP_ERROR_494_MSG = "Die Authentifizierung des Stammportals ist fehlgeschlagen";
+ public static final String PVP_ERROR_511_CODE = "511";
+ public static final String PVP_ERROR_511_MSG = "PVP Version nicht unterstützt";
+
+ private PvpRProfileHttpHeaders() {
+
+ }
+}