File tree 2 files changed +14
-14
lines changed
config/src/main/java/org/springframework/security/config/annotation/web/builders
saml2/saml2-service-provider/src/main/java/org/springframework/security/saml2/serviceprovider/provider
2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -1928,13 +1928,13 @@ public HttpSecurity formLogin(Customizer<FormLoginConfigurer<HttpSecurity>> form
1928
1928
* Saml2X509Credential signingCredential = getSigningCredential();
1929
1929
* //IDP certificate for verification of incoming messages
1930
1930
* Saml2X509Credential idpVerificationCertificate = getVerificationCertificate();
1931
- * return new RelyingPartyRegistration(
1932
- * idpEntityId,
1933
- * registrationId,
1934
- * new URI(webSsoEndpoint),
1935
- * Arrays.asList(signingCredential, idpVerificationCertificate),
1936
- * localEntityIdTemplate
1937
- * );
1931
+ * return RelyingPartyRegistration.withRegistrationId(registrationId)
1932
+ * * .remoteIdpEntityId( idpEntityId)
1933
+ * * .idpWebSsoUrl(webSsoEndpoint)
1934
+ * * .credential(signingCredential)
1935
+ * * .credential( idpVerificationCertificate)
1936
+ * * . localEntityIdTemplate(localEntityIdTemplate)
1937
+ * * .build( );
1938
1938
* }
1939
1939
* }
1940
1940
* </pre>
Original file line number Diff line number Diff line change 48
48
* Saml2X509Credential signingCredential = getSigningCredential();
49
49
* //IDP certificate for verification of incoming messages
50
50
* Saml2X509Credential idpVerificationCertificate = getVerificationCertificate();
51
- * RelyingPartyRegistration rp = new RelyingPartyRegistration(
52
- * idpEntityId,
53
- * registrationId,
54
- * new URI(webSsoEndpoint),
55
- * Arrays.asList(signingCredential, idpVerificationCertificate),
56
- * localEntityIdTemplate
57
- * );
51
+ * RelyingPartyRegistration rp = RelyingPartyRegistration.withRegistrationId(registrationId)
52
+ * .remoteIdpEntityId( idpEntityId)
53
+ * .idpWebSsoUrl(webSsoEndpoint)
54
+ * .credential(signingCredential)
55
+ * .credential( idpVerificationCertificate)
56
+ * . localEntityIdTemplate(localEntityIdTemplate)
57
+ * .build( );
58
58
* </pre>
59
59
* @since 5.2
60
60
*/
You can’t perform that action at this time.
0 commit comments