diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-12-26 18:36:38 +0100 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-12-26 18:36:38 +0100 |
commit | 1aafdf3bbae55b09e6d28e97281797ba9e53aad0 (patch) | |
tree | a037b9c26b67b853dc03b7faee4894a0a1172c9f /eaaf_core/src/main/java/at/gv/egiz | |
parent | 7b83b319fce24faf12a3d69db9ccce87d0dde4f6 (diff) | |
parent | 2dedbb71d29fca583b1007c1871c03c39586fd1c (diff) | |
download | EAAF-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/src/main/java/at/gv/egiz')
-rw-r--r-- | eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/builder/attributes/BpkAttributeBuilder.java | 9 |
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; |