Class InMemoryRelyingPartyRegistrationRepository
java.lang.Object
org.springframework.security.saml2.provider.service.registration.InMemoryRelyingPartyRegistrationRepository
- All Implemented Interfaces:
Iterable<RelyingPartyRegistration>,IterableRelyingPartyRegistrationRepository,RelyingPartyRegistrationRepository
public class InMemoryRelyingPartyRegistrationRepository
extends Object
implements IterableRelyingPartyRegistrationRepository
An in-memory implementation of
RelyingPartyRegistrationRepository. Also
implements Iterable to simplify the default login page.- Since:
- 5.2
-
Constructor Summary
ConstructorsConstructorDescriptionInMemoryRelyingPartyRegistrationRepository(RelyingPartyRegistration... registrations) -
Method Summary
Modifier and TypeMethodDescriptionReturns the relying party registration identified by the providedregistrationId, ornullif not found.findUniqueByAssertingPartyEntityId(String entityId) Returns the unique relying party registration associated with the asserting party'sentityIdornullif there is no unique match.iterator()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
InMemoryRelyingPartyRegistrationRepository
-
InMemoryRelyingPartyRegistrationRepository
public InMemoryRelyingPartyRegistrationRepository(Collection<RelyingPartyRegistration> registrations)
-
-
Method Details
-
findByRegistrationId
Description copied from interface:RelyingPartyRegistrationRepositoryReturns the relying party registration identified by the providedregistrationId, ornullif not found.- Specified by:
findByRegistrationIdin interfaceRelyingPartyRegistrationRepository- Parameters:
id- the registration identifier- Returns:
- the
RelyingPartyRegistrationif found, otherwisenull
-
findUniqueByAssertingPartyEntityId
Description copied from interface:RelyingPartyRegistrationRepositoryReturns the unique relying party registration associated with the asserting party'sentityIdornullif there is no unique match.- Specified by:
findUniqueByAssertingPartyEntityIdin interfaceRelyingPartyRegistrationRepository- Parameters:
entityId- the asserting party's entity id- Returns:
- the unique
RelyingPartyRegistrationassociated the given asserting party;nullof there is no unique match asserting party
-
iterator
- Specified by:
iteratorin interfaceIterable<RelyingPartyRegistration>
-