Class AuthenticationToken
java.lang.Object
org.apache.pulsar.client.impl.auth.AuthenticationToken
- All Implemented Interfaces:
Closeable
,Serializable
,AutoCloseable
,Authentication
,EncodedAuthenticationParameterSupport
public class AuthenticationToken
extends Object
implements Authentication, EncodedAuthenticationParameterSupport
Token based authentication provider.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationToken
(String token) AuthenticationToken
(Supplier<String> tokenSupplier) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.pulsar.client.api.Authentication
authenticationStage, getAuthData, newRequestHeader
-
Constructor Details
-
AuthenticationToken
public AuthenticationToken() -
AuthenticationToken
-
AuthenticationToken
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getAuthMethodName
- Specified by:
getAuthMethodName
in interfaceAuthentication
-
getAuthData
- Specified by:
getAuthData
in interfaceAuthentication
- Throws:
PulsarClientException
-
configure
- Specified by:
configure
in interfaceEncodedAuthenticationParameterSupport
-
configure
- Specified by:
configure
in interfaceAuthentication
-
start
- Specified by:
start
in interfaceAuthentication
- Throws:
PulsarClientException
-