Class AuthenticationOAuth2
java.lang.Object
org.apache.pulsar.client.impl.auth.oauth2.AuthenticationOAuth2
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable,org.apache.pulsar.client.api.Authentication,org.apache.pulsar.client.api.EncodedAuthenticationParameterSupport
public class AuthenticationOAuth2
extends Object
implements org.apache.pulsar.client.api.Authentication, org.apache.pulsar.client.api.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 interfaceorg.apache.pulsar.client.api.Authentication
-
configure
- Specified by:
configurein interfaceorg.apache.pulsar.client.api.EncodedAuthenticationParameterSupport
-
configure
Deprecated.- Specified by:
configurein interfaceorg.apache.pulsar.client.api.Authentication
-
start
public void start() throws org.apache.pulsar.client.api.PulsarClientException- Specified by:
startin interfaceorg.apache.pulsar.client.api.Authentication- Throws:
org.apache.pulsar.client.api.PulsarClientException
-
getAuthData
public org.apache.pulsar.client.api.AuthenticationDataProvider getAuthData() throws org.apache.pulsar.client.api.PulsarClientException- Specified by:
getAuthDatain interfaceorg.apache.pulsar.client.api.Authentication- Throws:
org.apache.pulsar.client.api.PulsarClientException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-