Class OpenSamlMetadataResolver
- java.lang.Object
-
- org.springframework.security.saml2.provider.service.metadata.OpenSamlMetadataResolver
-
- All Implemented Interfaces:
Saml2MetadataResolver
public final class OpenSamlMetadataResolver extends java.lang.Object implements Saml2MetadataResolver
Resolves the SAML 2.0 Relying Party Metadata for a givenRelyingPartyRegistrationusing the OpenSAML API.- Since:
- 5.4
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenSamlMetadataResolver.EntityDescriptorParametersA tuple containing an OpenSAMLEntityDescriptorand its associatedRelyingPartyRegistration
-
Constructor Summary
Constructors Constructor Description OpenSamlMetadataResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringresolve(RelyingPartyRegistration relyingPartyRegistration)Resolve the given relying party's metadatavoidsetEntityDescriptorCustomizer(java.util.function.Consumer<OpenSamlMetadataResolver.EntityDescriptorParameters> entityDescriptorCustomizer)Set aConsumerfor modifying the OpenSAMLEntityDescriptor
-
-
-
Method Detail
-
resolve
public java.lang.String resolve(RelyingPartyRegistration relyingPartyRegistration)
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
-
setEntityDescriptorCustomizer
public void setEntityDescriptorCustomizer(java.util.function.Consumer<OpenSamlMetadataResolver.EntityDescriptorParameters> entityDescriptorCustomizer)
Set aConsumerfor modifying the OpenSAMLEntityDescriptor- Parameters:
entityDescriptorCustomizer- a consumer that accepts anOpenSamlMetadataResolver.EntityDescriptorParameters- Since:
- 5.7
-
-