Interface IridaClientDetailsService
-
- All Superinterfaces:
CRUDService<java.lang.Long,IridaClientDetails>
- All Known Implementing Classes:
IridaClientDetailsServiceImpl
public interface IridaClientDetailsService extends CRUDService<java.lang.Long,IridaClientDetails>
Service for storing and readingIridaClientDetails
objects
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
countActiveTokensForClient(IridaClientDetails client)
Get the number of all tokens defined for a givenIridaClientDetails
that are valid and not expired.int
countTokensForClient(IridaClientDetails client)
Get the number of tokens issued for a givenIridaClientDetails
IridaClientDetails
loadClientByClientId(java.lang.String clientId)
Get theIridaClientDetails
by clientDetailsvoid
revokeTokensForClient(IridaClientDetails client)
Revoke all OAuth2 tokens for a givenIridaClientDetails
-
Methods inherited from interface ca.corefacility.bioinformatics.irida.service.CRUDService
count, create, delete, exists, findAll, findRevisions, findRevisions, list, list, list, read, readMultiple, search, search, update, updateFields, updateMultiple
-
-
-
-
Method Detail
-
loadClientByClientId
IridaClientDetails loadClientByClientId(java.lang.String clientId)
Get theIridaClientDetails
by clientDetails- Parameters:
clientId
- The client_id of the client to fetch.- Returns:
- The client
-
countTokensForClient
int countTokensForClient(IridaClientDetails client)
Get the number of tokens issued for a givenIridaClientDetails
- Parameters:
client
- Client to count tokens for- Returns:
- Number of tokens issued for the given client
-
revokeTokensForClient
void revokeTokensForClient(IridaClientDetails client)
Revoke all OAuth2 tokens for a givenIridaClientDetails
- Parameters:
client
- The client to revoke tokens for
-
countActiveTokensForClient
int countActiveTokensForClient(IridaClientDetails client)
Get the number of all tokens defined for a givenIridaClientDetails
that are valid and not expired.- Parameters:
client
- theIridaClientDetails
to get tokens for- Returns:
- number of tokens defined for the client.
-
-