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
ConstructorDescriptionSupplierClientRegistrationRepository
(Supplier<T> repositorySupplier) Constructs anSupplierClientRegistrationRepository
using the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionfindByRegistrationId
(String registrationId) Returns the client registration identified by the providedregistrationId
, ornull
if not found.iterator()
Returns anIterator
ofClientRegistration
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SupplierClientRegistrationRepository
Constructs anSupplierClientRegistrationRepository
using the provided parameters.- Parameters:
repositorySupplier
- the client registration repository supplier
-
-
Method Details
-
findByRegistrationId
Description copied from interface:ClientRegistrationRepository
Returns the client registration identified by the providedregistrationId
, ornull
if not found.- Specified by:
findByRegistrationId
in interfaceClientRegistrationRepository
- Parameters:
registrationId
- the registration identifier- Returns:
- the
ClientRegistration
if found, otherwisenull
-
iterator
Returns anIterator
ofClientRegistration
.- Specified by:
iterator
in interfaceIterable<ClientRegistration>
- Returns:
- an
Iterator<ClientRegistration>
-