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
Nested ClassesModifier and TypeClassDescriptionstatic final classA tuple containing an OpenSAMLEntityDescriptorand its associatedRelyingPartyRegistration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolve(Iterable<RelyingPartyRegistration> relyingPartyRegistrations) resolve(RelyingPartyRegistration relyingPartyRegistration) Resolve the given relying party's metadatavoidsetEntityDescriptorCustomizer(Consumer<OpenSamlMetadataResolver.EntityDescriptorParameters> entityDescriptorCustomizer) Set aConsumerfor modifying the OpenSAMLEntityDescriptor
-
Constructor Details
-
OpenSamlMetadataResolver
public OpenSamlMetadataResolver()
-
-
Method Details
-
resolve
Description copied from interface:Saml2MetadataResolverResolve the given relying party's metadata- Specified by:
resolvein interfaceSaml2MetadataResolver- Parameters:
relyingPartyRegistration- the relying party- Returns:
- the relying party's metadata
-
resolve
- Specified by:
resolvein interfaceSaml2MetadataResolver
-
setEntityDescriptorCustomizer
public void setEntityDescriptorCustomizer(Consumer<OpenSamlMetadataResolver.EntityDescriptorParameters> entityDescriptorCustomizer) Set aConsumerfor modifying the OpenSAMLEntityDescriptor- Parameters:
entityDescriptorCustomizer- a consumer that accepts anOpenSamlMetadataResolver.EntityDescriptorParameters- Since:
- 5.7
-