diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-06-17 13:36:14 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-06-17 13:36:14 +0200 |
commit | 8b51a5eef55764746eebdeaa19b31e7eda3813e3 (patch) | |
tree | daf6d9c8f126611fb0c36e3a9249e873db8a8483 /id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/BPKBuilder.java | |
parent | 395d0e55c049bb93536f9281c8acfcca552740d5 (diff) | |
parent | 01a5b6d2e226f1b6c25fbc71eb90a00adc086f40 (diff) | |
download | moa-id-spss-8b51a5eef55764746eebdeaa19b31e7eda3813e3.tar.gz moa-id-spss-8b51a5eef55764746eebdeaa19b31e7eda3813e3.tar.bz2 moa-id-spss-8b51a5eef55764746eebdeaa19b31e7eda3813e3.zip |
Merge branch 'moa-2.1-Snapshot' of gitlab.iaik.tugraz.at:afitzek/moa-idspss into moa-2.1-Snapshot
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/BPKBuilder.java')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/BPKBuilder.java | 15 |
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. |