Skip to content

Commit

Permalink
[NOISSUE]
Browse files Browse the repository at this point in the history
add missing clear
  • Loading branch information
jj committed Feb 26, 2019
1 parent 8856014 commit adc19bf
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ void setupSecurity(EntityDescriptor ed, EntityDescriptorRepresentation represent
if (securityInfoRepresentation.isWantAssertionsSigned()) {
getSPSSODescriptorFromEntityDescriptor(ed).setWantAssertionsSigned(true);
}
// TODO: review if we need more than a naive implementation
ed.getOptionalSPSSODescriptor().ifPresent( i -> i.getKeyDescriptors().clear());
if (securityInfoRepresentation.isX509CertificateAvailable()) {
for (SecurityInfoRepresentation.X509CertificateRepresentation x509CertificateRepresentation : securityInfoRepresentation.getX509Certificates()) {
KeyDescriptor keyDescriptor = createKeyDescriptor(x509CertificateRepresentation.getName(), x509CertificateRepresentation.getType(), x509CertificateRepresentation.getValue());
Expand Down

0 comments on commit adc19bf

Please sign in to comment.