public interface ReadOnlyIdentityProvider extends Session
SPI interface for read-only identity Service Providers.
This interface provides access to a read-only user / group repository
Modifier and Type | Method and Description |
---|---|
boolean |
checkPassword(String userId,
String password) |
GroupQuery |
createGroupQuery() |
GroupQuery |
createGroupQuery(CommandContext commandContext) |
NativeUserQuery |
createNativeUserQuery()
Creates a
NativeUserQuery that allows to select users with native queries. |
TenantQuery |
createTenantQuery() |
TenantQuery |
createTenantQuery(CommandContext commandContext) |
UserQuery |
createUserQuery() |
UserQuery |
createUserQuery(CommandContext commandContext) |
Group |
findGroupById(String groupId) |
Tenant |
findTenantById(String tenantId) |
User |
findUserById(String userId) |
User findUserById(String userId)
User
object for the given user id or null if no such user exists.IdentityProviderException
- in case an error occursUserQuery createUserQuery()
UserQuery
object which can be used for querying for users.IdentityProviderException
- in case an error occursUserQuery createUserQuery(CommandContext commandContext)
UserQuery
object which can be used in the current command contextIdentityProviderException
- in case an error occursNativeUserQuery createNativeUserQuery()
NativeUserQuery
that allows to select users with native queries.boolean checkPassword(String userId, String password)
IdentityProviderException
- in case an error occursGroup findGroupById(String groupId)
Group
object for the given group id or null if no such group exists.IdentityProviderException
- in case an error occursGroupQuery createGroupQuery()
GroupQuery
object which can be used for querying for groups.IdentityProviderException
- in case an error occursGroupQuery createGroupQuery(CommandContext commandContext)
GroupQuery
object which can be used for querying for groups and can be reused in the current command context.IdentityProviderException
- in case an error occursTenant findTenantById(String tenantId)
Tenant
object for the given id or null if no such tenant
exists.IdentityProviderException
- in case an error occursTenantQuery createTenantQuery()
TenantQuery
object which can be used for querying for
tenants.IdentityProviderException
- in case an error occursTenantQuery createTenantQuery(CommandContext commandContext)
TenantQuery
object which can be used for querying for
tenants and can be reused in the current command context.IdentityProviderException
- in case an error occursCopyright © 2019. All rights reserved.