Package io.deephaven.enterprise.auth
Interface TokenAuthenticationClient
- All Superinterfaces:
TokenVerificationClient
- All Known Subinterfaces:
AuthenticationClient
,PublicKeyAuthenticationClient
,TokenFactoryFactory
- All Known Implementing Classes:
AuthenticationClientManager
,AuthenticationClientManager.Null
,AuthenticationClientManagerBase
,GrpcAuthenticationClientManager
The basic subset of authentication functionality for client that don't need full blow AuthenticationClient. In
particular, TokenFactoryFactory implements only this interface.
-
Method Summary
Modifier and TypeMethodDescriptiondefault AuthToken
createToken
(DhService service) Create a new token for the specified servicecreateToken
(String service) Create a new token for the specified servicedefault AuthToken
createTokenForUser
(DhService service, String operateAs) Create a new token for the specified service to operate as the specified usrcreateTokenForUser
(String service, String operateAs) Create a new token for the specified service to operate as the specified usrMethods inherited from interface io.deephaven.enterprise.auth.TokenVerificationClient
verifyToken
-
Method Details
-
createToken
Create a new token for the specified service- Returns:
- A new auth token from the server
- Throws:
TokenCreationException
- if the server was unreachableAuthException
- if any other authentication problem occurred
-
createToken
Create a new token for the specified service- Returns:
- A new auth token from the server
- Throws:
TokenCreationException
- if the server was unreachableAuthException
- if any other authentication problem occurred
-
createTokenForUser
Create a new token for the specified service to operate as the specified usr- Throws:
TokenCreationException
- if the server was unreachableAuthException
- if any other authentication problem occurred
-
createTokenForUser
Create a new token for the specified service to operate as the specified usr- Throws:
TokenCreationException
- if the server was unreachableAuthException
- if any other authentication problem occurred
-