aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main/java/at/gv/egovernment
diff options
context:
space:
mode:
authorBojan Suzic <bojan.suzic@iaik.tugraz.at>2014-06-16 15:24:36 +0200
committerBojan Suzic <bojan.suzic@iaik.tugraz.at>2014-06-16 15:24:36 +0200
commitff42123b6dd1a334016196f7f7dcfb7fe7462ab6 (patch)
treeee1a27d99d8241080e2a6bada759f169fa41440e /id/server/idserverlib/src/main/java/at/gv/egovernment
parent2f70341a68c47fb363e3729a78413e86494ac3cd (diff)
downloadmoa-id-spss-ff42123b6dd1a334016196f7f7dcfb7fe7462ab6.tar.gz
moa-id-spss-ff42123b6dd1a334016196f7f7dcfb7fe7462ab6.tar.bz2
moa-id-spss-ff42123b6dd1a334016196f7f7dcfb7fe7462ab6.zip
extending eidentifier calculation
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv/egovernment')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/BPKBuilder.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/BPKBuilder.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/BPKBuilder.java
index 7039a1fe0..20641ca7c 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/BPKBuilder.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/BPKBuilder.java
@@ -148,6 +148,21 @@ public class BPKBuilder {
return buildStorkbPK(identityLink, "AT", destinationCountry);
}
+ /**
+ * Builds the storkeid from the given parameters.
+ *
+ * @param identityLink identity link
+ * @param destinationCountry destination country code (2 chars)
+ * @return storkid in a BASE64 encoding
+ * @throws BuildException if an error occurs on building the wbPK
+ */
+ public String buildStorkeIdentifier(String identificationType, String identificationValue, String destinationCountry)
+ throws BuildException {
+ IdentityLink tempIdentity = new IdentityLink();
+ tempIdentity.setIdentificationType(identificationType);
+ tempIdentity.setIdentificationValue(identificationValue);
+ return buildStorkbPK(tempIdentity, "AT", destinationCountry);
+ }
/**
* Builds the storkeid from the given parameters.