Class EndpointSettings.Builder
java.lang.Object
se.swedenconnect.spring.saml.idp.settings.AbstractSettings.AbstractBuilder<EndpointSettings,EndpointSettings.Builder>
se.swedenconnect.spring.saml.idp.settings.EndpointSettings.Builder
- Enclosing class:
EndpointSettings
public static final class EndpointSettings.Builder
extends AbstractSettings.AbstractBuilder<EndpointSettings,EndpointSettings.Builder>
A builder for
EndpointSettings
.-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Is invoked byAbstractSettings.AbstractBuilder.build()
to apply default values to those settings that are mandatory and has not been assigned.protected EndpointSettings
Is invoked byAbstractSettings.AbstractBuilder.build()
and builds the settings object.hokPostAuthnEndpoint
(String hokPostAuthnEndpoint) Assigns the endpoint where the Identity Provider receives authentication requests via HTTP POST where Holder-of-key (HoK) is used.hokRedirectAuthnEndpoint
(String hokRedirectAuthnEndpoint) Assigns the endpoint where the Identity Provider receives authentication requests via HTTP redirect where Holder-of-key (HoK) is used.metadataEndpoint
(String metadataEndpoint) Assigns the SAML metadata publishing endpoint.postAuthnEndpoint
(String postAuthnEndpoint) Assigns the endpoint where the Identity Provider receives authentication requests via HTTP POST.redirectAuthnEndpoint
(String redirectAuthnEndpoint) Assigns the endpoint where the Identity Provider receives authentication requests via HTTP redirect.Methods inherited from class se.swedenconnect.spring.saml.idp.settings.AbstractSettings.AbstractBuilder
build, getSettings, getThis, setting, settings
-
Method Details
-
redirectAuthnEndpoint
Assigns the endpoint where the Identity Provider receives authentication requests via HTTP redirect.- Parameters:
redirectAuthnEndpoint
- the redirect authentication endpoint- Returns:
- the builder
-
postAuthnEndpoint
Assigns the endpoint where the Identity Provider receives authentication requests via HTTP POST.- Parameters:
postAuthnEndpoint
- the POST authentication endpoint- Returns:
- the builder
-
hokRedirectAuthnEndpoint
Assigns the endpoint where the Identity Provider receives authentication requests via HTTP redirect where Holder-of-key (HoK) is used.- Parameters:
hokRedirectAuthnEndpoint
- the HoK redirect authentication endpoint- Returns:
- the builder
-
hokPostAuthnEndpoint
Assigns the endpoint where the Identity Provider receives authentication requests via HTTP POST where Holder-of-key (HoK) is used.- Parameters:
hokPostAuthnEndpoint
- the HoK POST authentication endpoint- Returns:
- the builder
-
metadataEndpoint
Assigns the SAML metadata publishing endpoint.- Parameters:
metadataEndpoint
- the endpoint- Returns:
- the builder
-
applyDefaultSettings
protected void applyDefaultSettings()Is invoked byAbstractSettings.AbstractBuilder.build()
to apply default values to those settings that are mandatory and has not been assigned.- Specified by:
applyDefaultSettings
in classAbstractSettings.AbstractBuilder<EndpointSettings,
EndpointSettings.Builder>
-
buildObject
Is invoked byAbstractSettings.AbstractBuilder.build()
and builds the settings object.- Specified by:
buildObject
in classAbstractSettings.AbstractBuilder<EndpointSettings,
EndpointSettings.Builder> - Returns:
- the settings object
-