Interface ReadOnlyIdentityProvider
-
- All Superinterfaces:
Session
- All Known Implementing Classes:
DbIdentityServiceProvider,DbReadOnlyIdentityServiceProvider,LdapIdentityProviderSession
public interface ReadOnlyIdentityProvider extends Session
SPI interface for read-only identity Service Providers.
This interface provides access to a read-only user / group repository
- Author:
- Daniel Meyer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckPassword(java.lang.String userId, java.lang.String password)GroupQuerycreateGroupQuery()GroupQuerycreateGroupQuery(CommandContext commandContext)NativeUserQuerycreateNativeUserQuery()Creates aNativeUserQuerythat allows to select users with native queries.TenantQuerycreateTenantQuery()TenantQuerycreateTenantQuery(CommandContext commandContext)UserQuerycreateUserQuery()UserQuerycreateUserQuery(CommandContext commandContext)GroupfindGroupById(java.lang.String groupId)TenantfindTenantById(java.lang.String tenantId)UserfindUserById(java.lang.String userId)
-
-
-
Method Detail
-
findUserById
User findUserById(java.lang.String userId)
- 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
UserQuery createUserQuery(CommandContext commandContext)
- 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
boolean checkPassword(java.lang.String userId, java.lang.String password)- Returns:
- 'true' if the password matches the
- Throws:
IdentityProviderException- in case an error occurs
-
findGroupById
Group findGroupById(java.lang.String groupId)
- 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
GroupQuery createGroupQuery(CommandContext commandContext)
- 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
Tenant findTenantById(java.lang.String tenantId)
- 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
TenantQuery createTenantQuery(CommandContext commandContext)
- 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
-
-