Class OpenSamlMetadataResolver
java.lang.Object
org.springframework.security.saml2.provider.service.metadata.OpenSamlMetadataResolver
- All Implemented Interfaces:
Saml2MetadataResolver
Resolves the SAML 2.0 Relying Party Metadata for a given
RelyingPartyRegistration
using the OpenSAML API.- Since:
- 5.4
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A tuple containing an OpenSAMLEntityDescriptor
and its associatedRelyingPartyRegistration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionresolve
(Iterable<RelyingPartyRegistration> relyingPartyRegistrations) resolve
(RelyingPartyRegistration relyingPartyRegistration) Resolve the given relying party's metadatavoid
setEntityDescriptorCustomizer
(Consumer<OpenSamlMetadataResolver.EntityDescriptorParameters> entityDescriptorCustomizer) Set aConsumer
for modifying the OpenSAMLEntityDescriptor
-
Constructor Details
-
OpenSamlMetadataResolver
public OpenSamlMetadataResolver()
-
-
Method Details
-
resolve
Description copied from interface:Saml2MetadataResolver
Resolve the given relying party's metadata- Specified by:
resolve
in interfaceSaml2MetadataResolver
- Parameters:
relyingPartyRegistration
- the relying party- Returns:
- the relying party's metadata
-
resolve
- Specified by:
resolve
in interfaceSaml2MetadataResolver
-
setEntityDescriptorCustomizer
public void setEntityDescriptorCustomizer(Consumer<OpenSamlMetadataResolver.EntityDescriptorParameters> entityDescriptorCustomizer) Set aConsumer
for modifying the OpenSAMLEntityDescriptor
- Parameters:
entityDescriptorCustomizer
- a consumer that accepts anOpenSamlMetadataResolver.EntityDescriptorParameters
- Since:
- 5.7
-