Class SAML2MetadataSupport
java.lang.Object
org.opensaml.saml.metadata.support.SAML2MetadataSupport
Utility helper class for SAML 2 metadata objects.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends IndexedEndpoint>
TgetDefaultIndexedEndpoint(List<T> candidates) Select the defaultIndexedEndpointfrom a list of candidates.
-
Field Details
-
LOG
@Nonnull private static final org.slf4j.Logger LOGLogger.
-
-
Constructor Details
-
SAML2MetadataSupport
private SAML2MetadataSupport()Constructor.
-
-
Method Details
-
getDefaultIndexedEndpoint
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
-