Package io.streamnative.oxia.client.auth
Class TokenAuthentication
java.lang.Object
io.streamnative.oxia.client.auth.TokenAuthentication
- All Implemented Interfaces:
Authentication,EncodedAuthenticationParameterSupport
public class TokenAuthentication
extends Object
implements Authentication, EncodedAuthenticationParameterSupport
-
Constructor Summary
ConstructorsConstructorDescriptionTokenAuthentication(String token) TokenAuthentication(Supplier<String> tokenSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoidio.grpc.Metadata
-
Constructor Details
-
TokenAuthentication
-
TokenAuthentication
-
-
Method Details
-
generateCredentials
public io.grpc.Metadata generateCredentials()- Specified by:
generateCredentialsin interfaceAuthentication
-
configure
- Specified by:
configurein interfaceEncodedAuthenticationParameterSupport
-