public class BPKBuilder extends Object
"Ableitung f¨r die bereichsspezifische Personenkennzeichnung"
version 1.0.1
from "reference.e-government.gv.at"
.Constructor and Description |
---|
BPKBuilder() |
Modifier and Type | Method and Description |
---|---|
String |
buildBPK(String identificationValue,
String target)
Builds the bPK from the given parameters.
|
String |
buildbPKorwbPK(String baseID,
String bPKorwbPKTarget) |
Pair<String,String> |
buildeIDASIdentifer(String baseID,
String baseIDType,
String sourceCountry,
String destinationCountry)
Builds the storkeid from the given parameters.
|
String |
buildWBPK(String identificationValue,
String registerAndOrdNr)
Builds the wbPK from the given parameters.
|
static String |
decryptBPK(String encryptedBpk,
String target,
PrivateKey privateKey) |
static String |
encryptBPK(String bpk,
String target,
PublicKey publicKey) |
public String buildBPK(String identificationValue, String target) throws BuildException
identificationValue
- Base64 encoded "Stammzahl"target
- "Bereich lt. Verordnung des BKA"BuildException
- if an error occurs on building the bPKpublic String buildWBPK(String identificationValue, String registerAndOrdNr) throws BuildException
identificationValue
- Base64 encoded "Stammzahl"registerAndOrdNr
- type of register + "+" + number in register.BuildException
- if an error occurs on building the wbPKpublic String buildbPKorwbPK(String baseID, String bPKorwbPKTarget) throws BuildException
BuildException
public static String encryptBPK(String bpk, String target, PublicKey publicKey) throws BuildException
BuildException
public static String decryptBPK(String encryptedBpk, String target, PrivateKey privateKey) throws BuildException
BuildException
public Pair<String,String> buildeIDASIdentifer(String baseID, String baseIDType, String sourceCountry, String destinationCountry) throws BuildException
baseID
- baseID of the citizenbaseIDType
- Type of the baseIDsourceCountry
- CountryCode of that country, which build the eIDAs IDdestinationCountry
- CountryCode of that country, which receives the eIDAs IDBuildException
- if an error occurs on building the wbPKCopyright © 2017. All rights reserved.