Class InMemoryFederatedIdentityRepository
java.lang.Object
com.codename1.backend.security.oauth2.client.InMemoryFederatedIdentityRepository
- All Implemented Interfaces:
FederatedIdentityRepository
public final class InMemoryFederatedIdentityRepository
extends Object
implements FederatedIdentityRepository
Identities kept in this process: gone when it stops, and unknown to any
other. For development and tests; see
JdbcFederatedIdentityRepository.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindByUsername(String username) The identities tied tousername, each as{provider, subject}.findUsername(String provider, String subject) The local user this identity is tied to, or null.Ties the identity tousername, unless it is tied already.booleanUnties the identity.
-
Constructor Details
-
InMemoryFederatedIdentityRepository
public InMemoryFederatedIdentityRepository()
-
-
Method Details
-
findUsername
Description copied from interface:FederatedIdentityRepositoryThe local user this identity is tied to, or null.- Specified by:
findUsernamein interfaceFederatedIdentityRepository
-
link
Description copied from interface:FederatedIdentityRepositoryTies the identity tousername, unless it is tied already.- Specified by:
linkin interfaceFederatedIdentityRepository- Returns:
- the user the identity is tied to once this returns:
username, or the one another request tied it to first
-
unlink
Description copied from interface:FederatedIdentityRepositoryUnties the identity.- Specified by:
unlinkin interfaceFederatedIdentityRepository- Returns:
- whether it was tied
-
findByUsername
Description copied from interface:FederatedIdentityRepositoryThe identities tied tousername, each as{provider, subject}.- Specified by:
findByUsernamein interfaceFederatedIdentityRepository
-