Class SAML2MetadataSupport
- java.lang.Object
-
- org.opensaml.saml.metadata.support.SAML2MetadataSupport
-
public final class SAML2MetadataSupport extends Object
Utility helper class for SAML 2 metadata objects.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateSAML2MetadataSupport()Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends IndexedEndpoint>
TgetDefaultIndexedEndpoint(List<T> candidates)Select the defaultIndexedEndpointfrom a list of candidates.private static org.slf4j.LoggergetLogger()Get an SLF4J Logger.
-
-
-
Method Detail
-
getDefaultIndexedEndpoint
public static <T extends IndexedEndpoint> T getDefaultIndexedEndpoint(List<T> candidates)
Select the defaultIndexedEndpointfrom a list of candidates.The algorithm used is:
- Select the first endpoint with an explicit
isDefault=true - Select the first endpoint with no explicit
isDefault - 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)
- Select the first endpoint with an explicit
-
getLogger
private static org.slf4j.Logger getLogger()
Get an SLF4J Logger.- Returns:
- a Logger instance
-
-