public interface IdentityDb<I extends Identity>
| Modifier and Type | Method and Description |
|---|---|
I |
authenticate(ApiKeyCredential akc)
Authenticate with an API key and signature
|
I |
authenticate(JwtCredential jwt)
Authenticate with a JWT token
|
I |
authenticate(UsernamePasswordCredential upc)
Authenticate with a username and password
|
String |
createJwtToken(Identity ii)
Create a JWT token for the given identity.
|
void |
invalidateJwtToken(String jwtToken)
Invalidate the given JWT token
|
I |
loadUser(String userId)
Load a user from the identity manager.
|
I |
loadUserOrAlias(String userIdOrAlias)
Load a user from the identity manager.
|
boolean |
userExists(String userId)
Find out if a given user exists.
|
boolean |
userOrAliasExists(String userIdOrAlias)
Find out if a given user or alias exists.
|
boolean userExists(String userId) throws IamSvcException
userId - a user IDIamSvcException - when the call cannot be completed due to a service errorboolean userOrAliasExists(String userIdOrAlias) throws IamSvcException
userIdOrAlias - the user ID or an aliasIamSvcException - when the call cannot be completed due to a service errorI loadUser(String userId) throws IamSvcException
userId - a user IDIamSvcException - when the call cannot be completed due to a service errorI loadUserOrAlias(String userIdOrAlias) throws IamSvcException
userIdOrAlias - the actual userId or an aliasIamSvcException - when the call cannot be completed due to a service errorI authenticate(UsernamePasswordCredential upc) throws IamSvcException
upc - the username/password credentialIamSvcException - when the call cannot be completed due to a service errorI authenticate(ApiKeyCredential akc) throws IamSvcException
akc - the API key credentialIamSvcException - when the call cannot be completed due to a service errorI authenticate(JwtCredential jwt) throws IamSvcException
jwt - the JWT credentialIamSvcException - when the call cannot be completed due to a service errorString createJwtToken(Identity ii) throws IamSvcException
ii - an identityIamSvcException - when the call cannot be completed due to a service errorvoid invalidateJwtToken(String jwtToken) throws IamSvcException
jwtToken - a JWT tokenIamSvcException - when the call cannot be completed due to a service errorCopyright © 2023 continual.io. All rights reserved.