[java-opensaml] branch maint-3.4 updated: OSJ-277: Switch to LinkedHashSet and metadata document order on ...

Brent Putman putmanb at georgetown.edu
Fri Apr 12 12:45:21 EDT 2019


This is an automated email from the git hooks/post-receive script.

putmanb pushed a commit to branch maint-3.4
in repository java-opensaml.

View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=37dce1d533ae13a21628c5ec302da4e10d11406b

The following commit(s) were added to refs/heads/maint-3.4 by this push:
       new  37dce1d   OSJ-277: Switch to LinkedHashSet and metadata document order on ...
37dce1d is described below

commit 37dce1d533ae13a21628c5ec302da4e10d11406b
Author: Brent Putman <putmanb at georgetown.edu>
AuthorDate: Fri Apr 12 12:44:01 2019 -0400

    OSJ-277: Switch to LinkedHashSet and metadata document order on ...
    
    Switch to LinkedHashSet and metadata document order on encryption keys
---
 .../org/opensaml/saml/security/impl/MetadataCredentialResolver.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/opensaml-saml-impl/src/main/java/org/opensaml/saml/security/impl/MetadataCredentialResolver.java b/opensaml-saml-impl/src/main/java/org/opensaml/saml/security/impl/MetadataCredentialResolver.java
index 56e417e..110aa62 100644
--- a/opensaml-saml-impl/src/main/java/org/opensaml/saml/security/impl/MetadataCredentialResolver.java
+++ b/opensaml-saml-impl/src/main/java/org/opensaml/saml/security/impl/MetadataCredentialResolver.java
@@ -20,6 +20,7 @@ package org.opensaml.saml.security.impl;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.HashSet;
+import java.util.LinkedHashSet;
 import java.util.List;
 import java.util.concurrent.locks.ReadWriteLock;
 
@@ -258,7 +259,7 @@ public class MetadataCredentialResolver extends AbstractCriteriaFilteringCredent
         
         log.debug("Resolving credentials from supplied RoleDescriptor using usage: {}.  Effective entityID was: {}", 
                 usage, entityID);
-        final HashSet<Credential> credentials = new HashSet<>(3);
+        final LinkedHashSet<Credential> credentials = new LinkedHashSet<>(3);
         
         processRoleDescriptor(credentials, roleDescriptor, entityID, usage);
         
@@ -285,7 +286,7 @@ public class MetadataCredentialResolver extends AbstractCriteriaFilteringCredent
 
         log.debug("Resolving credentials from metadata using entityID: {}, role: {}, protocol: {}, usage: {}", 
                 entityID, role, protocol, usage);
-        final HashSet<Credential> credentials = new HashSet<>(3);
+        final LinkedHashSet<Credential> credentials = new LinkedHashSet<>(3);
 
         final Iterable<RoleDescriptor> roleDescriptors = getRoleDescriptors(criteriaSet, entityID, role, protocol);
             

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list