Class OpenSAMLIdpMetadataResolver
java.lang.Object
se.idsec.signservice.integration.security.impl.OpenSAMLIdpMetadataResolver
- All Implemented Interfaces:
IdpMetadataResolver
Implementation of the
IdpMetadataResolver interface using an OpenSAML MetadataResolver.- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Constructor Summary
ConstructorsConstructorDescriptionOpenSAMLIdpMetadataResolver(org.opensaml.saml.metadata.resolver.MetadataResolver metadataResolver) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.opensaml.saml.saml2.metadata.EntityDescriptorresolveMetadata(String entityID, IntegrationServiceConfiguration config) Gets the (valid) metadata for the given SAML IdP.
-
Constructor Details
-
OpenSAMLIdpMetadataResolver
public OpenSAMLIdpMetadataResolver(org.opensaml.saml.metadata.resolver.MetadataResolver metadataResolver) Constructor.- Parameters:
metadataResolver- the metadata resolver
-
-
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:
resolveMetadatain 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
-