Skip to content

Commit 0b30c14

Browse files
committed
Adjust javadoc for new builder class
1 parent 1686591 commit 0b30c14

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

config/src/main/java/org/springframework/security/config/annotation/web/builders/HttpSecurity.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -1928,13 +1928,13 @@ public HttpSecurity formLogin(Customizer<FormLoginConfigurer<HttpSecurity>> form
19281928
* Saml2X509Credential signingCredential = getSigningCredential();
19291929
* //IDP certificate for verification of incoming messages
19301930
* 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();
19381938
* }
19391939
* }
19401940
* </pre>

saml2/saml2-service-provider/src/main/java/org/springframework/security/saml2/serviceprovider/provider/RelyingPartyRegistration.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@
4848
* Saml2X509Credential signingCredential = getSigningCredential();
4949
* //IDP certificate for verification of incoming messages
5050
* 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();
5858
* </pre>
5959
* @since 5.2
6060
*/

0 commit comments

Comments
 (0)