Interface ReadOnlyIdentityProvider
- All Superinterfaces:
Session
- All Known Implementing Classes:
DbIdentityServiceProvider
,DbReadOnlyIdentityServiceProvider
,LdapIdentityProviderSession
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 TypeMethodDescriptionboolean
checkPassword
(String userId, String password) createGroupQuery
(CommandContext commandContext) Creates aNativeUserQuery
that 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
User
object for the given user id or null if no such user exists. - Throws:
IdentityProviderException
- in case an error occurs
-
createUserQuery
UserQuery createUserQuery()- Returns:
- a
UserQuery
object which can be used for querying for users. - Throws:
IdentityProviderException
- in case an error occurs
-
createUserQuery
- Returns:
- a
UserQuery
object which can be used in the current command context - Throws:
IdentityProviderException
- in case an error occurs
-
createNativeUserQuery
NativeUserQuery createNativeUserQuery()Creates aNativeUserQuery
that 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
Group
object for the given group id or null if no such group exists. - Throws:
IdentityProviderException
- in case an error occurs
-
createGroupQuery
GroupQuery createGroupQuery()- Returns:
- a
GroupQuery
object which can be used for querying for groups. - Throws:
IdentityProviderException
- in case an error occurs
-
createGroupQuery
- Returns:
- a
GroupQuery
object 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
Tenant
object for the given id or null if no such tenant exists. - Throws:
IdentityProviderException
- in case an error occurs
-
createTenantQuery
TenantQuery createTenantQuery()- Returns:
- a
TenantQuery
object which can be used for querying for tenants. - Throws:
IdentityProviderException
- in case an error occurs
-
createTenantQuery
- Returns:
- a
TenantQuery
object which can be used for querying for tenants and can be reused in the current command context. - Throws:
IdentityProviderException
- in case an error occurs
-