public final class RelyingPartyRegistrations extends java.lang.Object
|Modifier and Type||Method and Description|
public static RelyingPartyRegistration.Builder fromMetadataLocation(java.lang.String metadataLocation)
RelyingPartyRegistration.Builderbased off of the given SAML 2.0 Asserting Party (IDP) metadata. Note that by default the registrationId is set to be the given metadata location, but this will most often not be sufficient. To complete the configuration, most applications will also need to provide a registrationId, like so:
RelyingPartyRegistration registration = RelyingPartyRegistrations .fromMetadataLocation(metadataLocation) .registrationId("registration-id") .build();Also note that an
IDPSSODescriptortypically only contains information about the asserting party. Thus, you will need to remember to still populate anything about the relying party, like any private keys the relying party will use for signing AuthnRequests.
RelyingPartyRegistration.Builderfor further configuration