Class SupplierClientRegistrationRepository
java.lang.Object
org.springframework.security.oauth2.client.registration.SupplierClientRegistrationRepository
- All Implemented Interfaces:
Iterable<ClientRegistration>,ClientRegistrationRepository
public final class SupplierClientRegistrationRepository
extends Object
implements ClientRegistrationRepository, Iterable<ClientRegistration>
A
ClientRegistrationRepository that lazily calls to retrieve
ClientRegistration(s) when requested.- Since:
- 6.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSupplierClientRegistrationRepository(Supplier<T> repositorySupplier) Constructs anSupplierClientRegistrationRepositoryusing the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionfindByRegistrationId(String registrationId) Returns the client registration identified by the providedregistrationId, ornullif not found.iterator()Returns anIteratorofClientRegistration.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
-
SupplierClientRegistrationRepository
Constructs anSupplierClientRegistrationRepositoryusing the provided parameters.- Parameters:
repositorySupplier- the client registration repository supplier
-
-
Method Details
-
findByRegistrationId
Description copied from interface:ClientRegistrationRepositoryReturns the client registration identified by the providedregistrationId, ornullif not found.- Specified by:
findByRegistrationIdin interfaceClientRegistrationRepository- Parameters:
registrationId- the registration identifier- Returns:
- the
ClientRegistrationif found, otherwisenull
-
iterator
Returns anIteratorofClientRegistration.- Specified by:
iteratorin interfaceIterable<ClientRegistration>- Returns:
- an
Iterator<ClientRegistration>
-