|
@@ -58,7 +58,7 @@ public class RefreshableRelyingPartyRegistrationRepository
|
|
implements IterableRelyingPartyRegistrationRepository {
|
|
implements IterableRelyingPartyRegistrationRepository {
|
|
|
|
|
|
private final AssertingPartyMetadataRepository metadata =
|
|
private final AssertingPartyMetadataRepository metadata =
|
|
- OpenSamlAssertingPartyMetadataRepository
|
|
|
|
|
|
+ OpenSaml5AssertingPartyMetadataRepository
|
|
.fromTrustedMetadataLocation("https://idp.example.org/metadata").build();
|
|
.fromTrustedMetadataLocation("https://idp.example.org/metadata").build();
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -93,7 +93,7 @@ Kotlin::
|
|
class RefreshableRelyingPartyRegistrationRepository : IterableRelyingPartyRegistrationRepository {
|
|
class RefreshableRelyingPartyRegistrationRepository : IterableRelyingPartyRegistrationRepository {
|
|
|
|
|
|
private val metadata: AssertingPartyMetadataRepository =
|
|
private val metadata: AssertingPartyMetadataRepository =
|
|
- OpenSamlAssertingPartyMetadataRepository.fromTrustedMetadataLocation(
|
|
|
|
|
|
+ OpenSaml5AssertingPartyMetadataRepository.fromTrustedMetadataLocation(
|
|
"https://idp.example.org/metadata").build()
|
|
"https://idp.example.org/metadata").build()
|
|
|
|
|
|
fun findByRegistrationId(registrationId:String?): RelyingPartyRegistration {
|
|
fun findByRegistrationId(registrationId:String?): RelyingPartyRegistration {
|
|
@@ -132,7 +132,7 @@ Java::
|
|
+
|
|
+
|
|
[source,java,role="primary"]
|
|
[source,java,role="primary"]
|
|
----
|
|
----
|
|
-OpenSamlAssertingPartyMetadataRepository.withMetadataLocation("https://idp.example.org/metadata")
|
|
|
|
|
|
+OpenSaml5AssertingPartyMetadataRepository.withMetadataLocation("https://idp.example.org/metadata")
|
|
.verificationCredentials((c) -> c.add(myVerificationCredential))
|
|
.verificationCredentials((c) -> c.add(myVerificationCredential))
|
|
.build();
|
|
.build();
|
|
----
|
|
----
|
|
@@ -141,7 +141,7 @@ Kotlin::
|
|
+
|
|
+
|
|
[source,kotlin,role="secondary"]
|
|
[source,kotlin,role="secondary"]
|
|
----
|
|
----
|
|
-OpenSamlAssertingPartyMetadataRepository.withMetadataLocation("https://idp.example.org/metadata")
|
|
|
|
|
|
+OpenSaml5AssertingPartyMetadataRepository.withMetadataLocation("https://idp.example.org/metadata")
|
|
.verificationCredentials({ c : Collection<Saml2X509Credential> ->
|
|
.verificationCredentials({ c : Collection<Saml2X509Credential> ->
|
|
c.add(myVerificationCredential) })
|
|
c.add(myVerificationCredential) })
|
|
.build()
|
|
.build()
|