-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced references to metadataResolverName with ResourceId. Replaced ChainingMetadataResolver with OpenSaml. Replaced instanceof with smaller one based on Refilterable. Moved updateChainingMetadataResolver to Util class. Updated unit tests that create EntityAttributesFilters to create Targets with valid values for regex and condition script. Unit tests WIP.
- Loading branch information
Bill Smith
committed
Sep 12, 2018
1 parent
78781de
commit 3e8d197
Showing
5 changed files
with
68 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...n/java/edu/internet2/tier/shibboleth/admin/util/OpenSamlChainingMetadataResolverUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package edu.internet2.tier.shibboleth.admin.util; | ||
|
||
import edu.internet2.tier.shibboleth.admin.ui.domain.resolvers.opensaml.OpenSamlChainingMetadataResolver; | ||
import org.opensaml.saml.metadata.resolver.MetadataResolver; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
/** | ||
* @author Bill Smith (wsmith@unicon.net) | ||
*/ | ||
public class OpenSamlChainingMetadataResolverUtil { | ||
|
||
public static void updateChainingMetadataResolver(OpenSamlChainingMetadataResolver chainingMetadataResolver, MetadataResolver openSamlResolver) { | ||
List<MetadataResolver> resolverList = new ArrayList<>(chainingMetadataResolver.getResolvers()); | ||
resolverList.removeIf(resolver -> resolver.getId().equals(openSamlResolver.getId())); | ||
resolverList.add(openSamlResolver); | ||
chainingMetadataResolver.setResolvers(resolverList); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters