summaryrefslogtreecommitdiff
path: root/eaaf_core
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2020-12-26 18:36:38 +0100
committerThomas Lenz <thomas.lenz@egiz.gv.at>2020-12-26 18:36:38 +0100
commit1aafdf3bbae55b09e6d28e97281797ba9e53aad0 (patch)
treea037b9c26b67b853dc03b7faee4894a0a1172c9f /eaaf_core
parent7b83b319fce24faf12a3d69db9ccce87d0dde4f6 (diff)
parent2dedbb71d29fca583b1007c1871c03c39586fd1c (diff)
downloadEAAF-Components-1aafdf3bbae55b09e6d28e97281797ba9e53aad0.tar.gz
EAAF-Components-1aafdf3bbae55b09e6d28e97281797ba9e53aad0.tar.bz2
EAAF-Components-1aafdf3bbae55b09e6d28e97281797ba9e53aad0.zip
Merge branch 'feature/add_springboot_commons' into 'nightlyBuild'
Feature/add springboot commons See merge request egiz/eaaf_components!10
Diffstat (limited to 'eaaf_core')
-rw-r--r--eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/builder/attributes/BpkAttributeBuilder.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/builder/attributes/BpkAttributeBuilder.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/builder/attributes/BpkAttributeBuilder.java
index 17919fc2..70e0f6d1 100644
--- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/builder/attributes/BpkAttributeBuilder.java
+++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/builder/attributes/BpkAttributeBuilder.java
@@ -57,12 +57,13 @@ public class BpkAttributeBuilder implements IPvpAttributeBuilder {
}
protected String getBpkForSP(final IAuthData authData) throws UnavailableAttributeException {
- final String bpk = attrMaxSize(authData.getBpk());
- final String type = BpkBuilder.removeBpkTypePrefix(authData.getBpkType());
-
- if (StringUtils.isEmpty(bpk)) {
+ if (StringUtils.isEmpty(authData.getBpk()) || StringUtils.isEmpty(authData.getBpkType())) {
throw new UnavailableAttributeException(BPK_NAME);
+
}
+
+ final String bpk = attrMaxSize(authData.getBpk());
+ final String type = BpkBuilder.removeBpkTypePrefix(authData.getBpkType());
return type + DELIMITER_BPKTYPE_BPK + bpk;