Class DefaultIdpMetadataResolver
java.lang.Object
se.idsec.signservice.integration.security.impl.DefaultIdpMetadataResolver
- All Implemented Interfaces:
IdpMetadataResolver
Default implementation of the
IdpMetadataResolver
.- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultIdpMetadataResolver
(se.swedenconnect.opensaml.saml2.metadata.provider.MetadataProvider metadataProvider) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.opensaml.saml.saml2.metadata.EntityDescriptor
resolveMetadata
(String entityID, IntegrationServiceConfiguration config) Gets the (valid) metadata for the given SAML IdP.
-
Constructor Details
-
DefaultIdpMetadataResolver
public DefaultIdpMetadataResolver(se.swedenconnect.opensaml.saml2.metadata.provider.MetadataProvider metadataProvider) Constructor.- Parameters:
metadataProvider
- the metadata provider from where metadata is obtained
-
-
Method Details
-
resolveMetadata
public org.opensaml.saml.saml2.metadata.EntityDescriptor resolveMetadata(@Nonnull String entityID, @Nonnull IntegrationServiceConfiguration config) throws MetadataException Gets the (valid) metadata for the given SAML IdP.- Specified by:
resolveMetadata
in interfaceIdpMetadataResolver
- Parameters:
entityID
- the entityID for the IdPconfig
- policy configuration- Returns:
- the IdP metadata
- Throws:
MetadataException
- if no valid metadata can be found, or any other error occur
-