public class AuthenticationOAuth2 extends Object implements Authentication, EncodedAuthenticationParameterSupport
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_METHOD_NAME |
static String |
CONFIG_PARAM_TYPE |
static double |
EXPIRY_ADJUSTMENT |
static String |
TYPE_CLIENT_CREDENTIALS |
| Constructor and Description |
|---|
AuthenticationOAuth2() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(Map<String,String> authParams)
Deprecated.
|
void |
configure(String encodedAuthParamString) |
AuthenticationDataProvider |
getAuthData() |
String |
getAuthMethodName() |
void |
start() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticationStage, getAuthData, newRequestHeaderpublic static final String CONFIG_PARAM_TYPE
public static final String TYPE_CLIENT_CREDENTIALS
public static final String AUTH_METHOD_NAME
public static final double EXPIRY_ADJUSTMENT
public String getAuthMethodName()
getAuthMethodName in interface Authenticationpublic void configure(String encodedAuthParamString)
configure in interface EncodedAuthenticationParameterSupport@Deprecated public void configure(Map<String,String> authParams)
configure in interface Authenticationpublic void start()
throws PulsarClientException
start in interface AuthenticationPulsarClientExceptionpublic AuthenticationDataProvider getAuthData() throws PulsarClientException
getAuthData in interface AuthenticationPulsarClientExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.