Class AuthenticationOAuth2
java.lang.Object
org.apache.pulsar.client.impl.auth.oauth2.AuthenticationOAuth2
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable,Authentication,EncodedAuthenticationParameterSupport
public class AuthenticationOAuth2
extends Object
implements Authentication, EncodedAuthenticationParameterSupport
Pulsar client authentication provider based on OAuth 2.0.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.client.api.Authentication
authenticationStage, getAuthData, newRequestHeader
-
Field Details
-
CONFIG_PARAM_TYPE
- See Also:
-
TYPE_CLIENT_CREDENTIALS
- See Also:
-
AUTH_METHOD_NAME
- See Also:
-
EXPIRY_ADJUSTMENT
public static final double EXPIRY_ADJUSTMENT- See Also:
-
-
Constructor Details
-
AuthenticationOAuth2
public AuthenticationOAuth2()
-
-
Method Details
-
getAuthMethodName
- Specified by:
getAuthMethodNamein interfaceAuthentication
-
configure
- Specified by:
configurein interfaceEncodedAuthenticationParameterSupport
-
configure
Deprecated.- Specified by:
configurein interfaceAuthentication
-
start
- Specified by:
startin interfaceAuthentication- Throws:
PulsarClientException
-
getAuthData
- Specified by:
getAuthDatain interfaceAuthentication- Throws:
PulsarClientException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-