Package io.deephaven.enterprise.auth
Interface TokenFactoryFactory
- All Superinterfaces:
TokenAuthenticationClient
,TokenVerificationClient
- All Known Subinterfaces:
AuthenticationClient
,PublicKeyAuthenticationClient
- All Known Implementing Classes:
AuthenticationClientManager
,AuthenticationClientManager.Null
,AuthenticationClientManagerBase
,GrpcAuthenticationClientManager
Implements a three-way handshake where clients request a transient, ephemeral token from an authentication server
where they are authenticated, and then forward that token to another service as credentials. The other service is
expected to validate the token back to the authentication server to confirm its authenticity.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
TokenFactory allows to execute actions with a transient token. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
close()
Close the token factory.default TokenFactoryFactory.TokenFactory
getTokenFactory
(DhService service) Create a token factory for the provided servicedefault TokenFactoryFactory.TokenFactory
getTokenFactory
(DhService service, String user) Create a token factory for the provided service and usergetTokenFactory
(String service) Create a token factory for the provided servicegetTokenFactory
(String service, String user) Create a token factory for the provided service and userMethods inherited from interface io.deephaven.enterprise.auth.TokenAuthenticationClient
createToken, createToken, createTokenForUser, createTokenForUser
Methods inherited from interface io.deephaven.enterprise.auth.TokenVerificationClient
verifyToken
-
Method Details
-
getTokenFactory
Create a token factory for the provided service- Parameters:
service
- the service- Returns:
- the created
TokenFactory
-
getTokenFactory
Create a token factory for the provided service- Parameters:
service
- the service- Returns:
- the created
TokenFactory
-
getTokenFactory
Create a token factory for the provided service and user- Parameters:
service
- the serviceuser
- the user- Returns:
- the created
TokenFactory
-
getTokenFactory
Create a token factory for the provided service and user- Parameters:
service
- the serviceuser
- the user- Returns:
- the created
TokenFactory
-
close
default void close()Close the token factory.
-