Interface ReadOnlyIdentityProvider
- All Superinterfaces:
Session
- All Known Implementing Classes:
DbIdentityServiceProvider,DbReadOnlyIdentityServiceProvider,LdapIdentityProviderSession,OAuth2IdentityProvider
SPI interface for read-only identity Service Providers.
This interface provides access to a read-only user / group repository
- Author:
- Daniel Meyer
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheckPassword(String userId, String password) createGroupQuery(CommandContext commandContext) Creates aNativeUserQuerythat allows to select users with native queries.createTenantQuery(CommandContext commandContext) createUserQuery(CommandContext commandContext) findGroupById(String groupId) findTenantById(String tenantId) findUserById(String userId)
-
Method Details
-
findUserById
- Returns:
- a
Userobject for the given user id or null if no such user exists. - Throws:
IdentityProviderException- in case an error occurs
-
createUserQuery
UserQuery createUserQuery()- Returns:
- a
UserQueryobject which can be used for querying for users. - Throws:
IdentityProviderException- in case an error occurs
-
createUserQuery
- Returns:
- a
UserQueryobject which can be used in the current command context - Throws:
IdentityProviderException- in case an error occurs
-
createNativeUserQuery
NativeUserQuery createNativeUserQuery()Creates aNativeUserQuerythat allows to select users with native queries.- Returns:
- NativeUserQuery
-
checkPassword
- Returns:
- 'true' if the password matches the
- Throws:
IdentityProviderException- in case an error occurs
-
findGroupById
- Returns:
- a
Groupobject for the given group id or null if no such group exists. - Throws:
IdentityProviderException- in case an error occurs
-
createGroupQuery
GroupQuery createGroupQuery()- Returns:
- a
GroupQueryobject which can be used for querying for groups. - Throws:
IdentityProviderException- in case an error occurs
-
createGroupQuery
- Returns:
- a
GroupQueryobject which can be used for querying for groups and can be reused in the current command context. - Throws:
IdentityProviderException- in case an error occurs
-
findTenantById
- Returns:
- a
Tenantobject for the given id or null if no such tenant exists. - Throws:
IdentityProviderException- in case an error occurs
-
createTenantQuery
TenantQuery createTenantQuery()- Returns:
- a
TenantQueryobject which can be used for querying for tenants. - Throws:
IdentityProviderException- in case an error occurs
-
createTenantQuery
- Returns:
- a
TenantQueryobject which can be used for querying for tenants and can be reused in the current command context. - Throws:
IdentityProviderException- in case an error occurs
-