OpenSAML-J 2.4.1-redhat-3

org.opensaml.saml2.metadata.support
Class SAML2MetadataHelper

java.lang.Object
  extended by org.opensaml.saml2.metadata.support.SAML2MetadataHelper

public final class SAML2MetadataHelper
extends Object

Utility helper class for SAML 2 metadata objects.


Method Summary
static
<T extends IndexedEndpoint>
T
getDefaultIndexedEndpoint(List<T> candidates)
          Select the default IndexedEndpoint from a list of candidates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultIndexedEndpoint

public static <T extends IndexedEndpoint> T getDefaultIndexedEndpoint(List<T> candidates)
Select the default IndexedEndpoint from a list of candidates.

The algorithm used is:

  1. Select the first endpoint with an explicit isDefault=true
  2. Select the first endpoint with no explicit isDefault
  3. Select the first endpoint

Type Parameters:
T - the subtype of IndexedType
Parameters:
candidates - the list of candidate indexed endpoints
Returns:
the selected candidate (or null if the list is null or empty)

OpenSAML-J 2.4.1-redhat-3

Copyright © 2006-2012 Internet2. All Rights Reserved.