Skip to content

Commit

Permalink
Merge branch 'feature/shibui-2380' of bitbucket.org:unicon/shib-idp-u…
Browse files Browse the repository at this point in the history
…i into feature/shibui-2380
  • Loading branch information
Bill Smith committed Oct 17, 2022
2 parents 765dd32 + c654f28 commit 535fd5c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ private void setupSecurityRepresentationFromEntityDescriptor(EntityDescriptor ed
keyDescriptorRep.setElementType(keyInfoType);
if (keyInfoType != KeyDescriptorRepresentation.ElementType.unsupported) {
List<XMLObject> children = keyInfo.getOrderedChildren().stream().filter(xmlObj -> {
boolean xmlWeDoNotWant = xmlObj instanceof KeyName || xmlObj instanceof KeyValue;
boolean xmlWeDoNotWant = xmlObj instanceof KeyName || xmlObj instanceof KeyValue || xmlObj == null;
return !xmlWeDoNotWant;
}).collect(Collectors.toList());
XMLObject obj = children.get(0);
Expand All @@ -533,7 +533,7 @@ private void setupSecurityRepresentationFromEntityDescriptor(EntityDescriptor ed

private KeyDescriptorRepresentation.ElementType determineKeyInfoType(KeyInfo keyInfo) {
List<XMLObject> children = keyInfo.getOrderedChildren().stream().filter(xmlObj -> {
boolean xmlWeDoNotWant = xmlObj instanceof KeyName || xmlObj instanceof KeyValue;
boolean xmlWeDoNotWant = xmlObj instanceof KeyName || xmlObj instanceof KeyValue || xmlObj == null;
return !xmlWeDoNotWant;
}).collect(Collectors.toList());
if (children.size() < 1) {
Expand Down

0 comments on commit 535fd5c

Please sign in to comment.