public class AuthenticationToken extends Object implements Authentication, EncodedAuthenticationParameterSupport
| Constructor and Description |
|---|
AuthenticationToken() |
AuthenticationToken(String token) |
AuthenticationToken(Supplier<String> tokenSupplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(Map<String,String> authParams) |
void |
configure(String encodedAuthParamString) |
AuthenticationDataProvider |
getAuthData() |
String |
getAuthMethodName() |
void |
start() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticationStage, getAuthData, newRequestHeaderpublic AuthenticationToken()
public AuthenticationToken(String token)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic String getAuthMethodName()
getAuthMethodName in interface Authenticationpublic AuthenticationDataProvider getAuthData() throws PulsarClientException
getAuthData in interface AuthenticationPulsarClientExceptionpublic void configure(String encodedAuthParamString)
configure in interface EncodedAuthenticationParameterSupportpublic void configure(Map<String,String> authParams)
configure in interface Authenticationpublic void start()
throws PulsarClientException
start in interface AuthenticationPulsarClientExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.