Class OpenSamlAssertingPartyDetails.Builder
java.lang.Object
org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistration.AssertingPartyDetails.Builder
org.springframework.security.saml2.provider.service.registration.OpenSamlAssertingPartyDetails.Builder
- Enclosing class:
- OpenSamlAssertingPartyDetails
public static final class OpenSamlAssertingPartyDetails.Builder
extends RelyingPartyRegistration.AssertingPartyDetails.Builder
An OpenSAML version of
RelyingPartyRegistration.AssertingPartyDetails.Builder
that contains the underlying EntityDescriptor
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build anOpenSamlAssertingPartyDetails
encryptionX509Credentials
(Consumer<Collection<Saml2X509Credential>> credentialsConsumer) Apply thisConsumer
to the list ofSaml2X509Credential
sSet the asserting party's EntityID.signingAlgorithms
(Consumer<List<String>> signingMethodAlgorithmsConsumer) Apply thisConsumer
to the list of SigningMethod AlgorithmssingleLogoutServiceBinding
(Saml2MessageBinding singleLogoutServiceBinding) Set the SingleLogoutService BindingsingleLogoutServiceLocation
(String singleLogoutServiceLocation) Set the SingleLogoutService LocationsingleLogoutServiceResponseLocation
(String singleLogoutServiceResponseLocation) singleSignOnServiceBinding
(Saml2MessageBinding singleSignOnServiceBinding) Set the SingleSignOnService Binding.singleSignOnServiceLocation
(String singleSignOnServiceLocation) Set the SingleSignOnService Location.verificationX509Credentials
(Consumer<Collection<Saml2X509Credential>> credentialsConsumer) Apply thisConsumer
to the list ofSaml2X509Credential
swantAuthnRequestsSigned
(boolean wantAuthnRequestsSigned) Set the WantAuthnRequestsSigned setting, indicating the asserting party's preference that relying parties should sign the AuthnRequest before sending.
-
Method Details
-
entityId
Set the asserting party's EntityID. Equivalent to the value found in the asserting party's <EntityDescriptor EntityID="..."/>- Overrides:
entityId
in classRelyingPartyRegistration.AssertingPartyDetails.Builder
- Parameters:
entityId
- the asserting party's EntityID- Returns:
- the
RelyingPartyRegistration.AssertingPartyDetails.Builder
for further configuration
-
wantAuthnRequestsSigned
public OpenSamlAssertingPartyDetails.Builder wantAuthnRequestsSigned(boolean wantAuthnRequestsSigned) Set the WantAuthnRequestsSigned setting, indicating the asserting party's preference that relying parties should sign the AuthnRequest before sending.- Overrides:
wantAuthnRequestsSigned
in classRelyingPartyRegistration.AssertingPartyDetails.Builder
- Parameters:
wantAuthnRequestsSigned
- the WantAuthnRequestsSigned setting- Returns:
- the
RelyingPartyRegistration.AssertingPartyDetails.Builder
for further configuration
-
signingAlgorithms
public OpenSamlAssertingPartyDetails.Builder signingAlgorithms(Consumer<List<String>> signingMethodAlgorithmsConsumer) Apply thisConsumer
to the list of SigningMethod Algorithms- Overrides:
signingAlgorithms
in classRelyingPartyRegistration.AssertingPartyDetails.Builder
- Parameters:
signingMethodAlgorithmsConsumer
- aConsumer
of the list of SigningMethod Algorithms- Returns:
- this
RelyingPartyRegistration.AssertingPartyDetails.Builder
for further configuration
-
verificationX509Credentials
public OpenSamlAssertingPartyDetails.Builder verificationX509Credentials(Consumer<Collection<Saml2X509Credential>> credentialsConsumer) Apply thisConsumer
to the list ofSaml2X509Credential
s- Overrides:
verificationX509Credentials
in classRelyingPartyRegistration.AssertingPartyDetails.Builder
- Parameters:
credentialsConsumer
- aConsumer
of theList
ofSaml2X509Credential
s- Returns:
- the
RelyingPartyRegistration.Builder
for further configuration
-
encryptionX509Credentials
public OpenSamlAssertingPartyDetails.Builder encryptionX509Credentials(Consumer<Collection<Saml2X509Credential>> credentialsConsumer) Apply thisConsumer
to the list ofSaml2X509Credential
s- Overrides:
encryptionX509Credentials
in classRelyingPartyRegistration.AssertingPartyDetails.Builder
- Parameters:
credentialsConsumer
- aConsumer
of theList
ofSaml2X509Credential
s- Returns:
- the
RelyingPartyRegistration.Builder
for further configuration
-
singleSignOnServiceLocation
public OpenSamlAssertingPartyDetails.Builder singleSignOnServiceLocation(String singleSignOnServiceLocation) Set the SingleSignOnService Location.Equivalent to the value found in <SingleSignOnService Location="..."/> in the asserting party's <IDPSSODescriptor>.
- Overrides:
singleSignOnServiceLocation
in classRelyingPartyRegistration.AssertingPartyDetails.Builder
- Parameters:
singleSignOnServiceLocation
- the SingleSignOnService Location- Returns:
- the
RelyingPartyRegistration.AssertingPartyDetails.Builder
for further configuration
-
singleSignOnServiceBinding
public OpenSamlAssertingPartyDetails.Builder singleSignOnServiceBinding(Saml2MessageBinding singleSignOnServiceBinding) Set the SingleSignOnService Binding.Equivalent to the value found in <SingleSignOnService Binding="..."/> in the asserting party's <IDPSSODescriptor>.
- Overrides:
singleSignOnServiceBinding
in classRelyingPartyRegistration.AssertingPartyDetails.Builder
- Parameters:
singleSignOnServiceBinding
- the SingleSignOnService Binding- Returns:
- the
RelyingPartyRegistration.AssertingPartyDetails.Builder
for further configuration
-
singleLogoutServiceLocation
public OpenSamlAssertingPartyDetails.Builder singleLogoutServiceLocation(String singleLogoutServiceLocation) Set the SingleLogoutService LocationEquivalent to the value found in <SingleLogoutService Location="..."/> in the asserting party's <IDPSSODescriptor>.
- Overrides:
singleLogoutServiceLocation
in classRelyingPartyRegistration.AssertingPartyDetails.Builder
- Parameters:
singleLogoutServiceLocation
- the SingleLogoutService Location- Returns:
- the
RelyingPartyRegistration.AssertingPartyDetails.Builder
for further configuration
-
singleLogoutServiceResponseLocation
public OpenSamlAssertingPartyDetails.Builder singleLogoutServiceResponseLocation(String singleLogoutServiceResponseLocation) Set the SingleLogoutService Response LocationEquivalent to the value found in <SingleLogoutService ResponseLocation="..."/> in the asserting party's <IDPSSODescriptor>.
- Overrides:
singleLogoutServiceResponseLocation
in classRelyingPartyRegistration.AssertingPartyDetails.Builder
- Parameters:
singleLogoutServiceResponseLocation
- the SingleLogoutService Response Location- Returns:
- the
RelyingPartyRegistration.AssertingPartyDetails.Builder
for further configuration
-
singleLogoutServiceBinding
public OpenSamlAssertingPartyDetails.Builder singleLogoutServiceBinding(Saml2MessageBinding singleLogoutServiceBinding) Set the SingleLogoutService BindingEquivalent to the value found in <SingleLogoutService Binding="..."/> in the asserting party's <IDPSSODescriptor>.
- Overrides:
singleLogoutServiceBinding
in classRelyingPartyRegistration.AssertingPartyDetails.Builder
- Parameters:
singleLogoutServiceBinding
- the SingleLogoutService Binding- Returns:
- the
RelyingPartyRegistration.AssertingPartyDetails.Builder
for further configuration
-
build
Build anOpenSamlAssertingPartyDetails
- Overrides:
build
in classRelyingPartyRegistration.AssertingPartyDetails.Builder
- Returns:
-