Class AuthenticationTls
java.lang.Object
org.apache.pulsar.client.impl.auth.AuthenticationTls
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable,org.apache.pulsar.client.api.Authentication,org.apache.pulsar.client.api.EncodedAuthenticationParameterSupport
public class AuthenticationTls
extends Object
implements org.apache.pulsar.client.api.Authentication, org.apache.pulsar.client.api.EncodedAuthenticationParameterSupport
This plugin requires these parameters
tlsCertFile: A file path for a client certificate. tlsKeyFile: A file path for a client private key.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationTls(String certFilePath, String keyFilePath) AuthenticationTls(Supplier<ByteArrayInputStream> certStreamProvider, Supplier<ByteArrayInputStream> keyStreamProvider) AuthenticationTls(Supplier<ByteArrayInputStream> certStreamProvider, Supplier<ByteArrayInputStream> keyStreamProvider, Supplier<ByteArrayInputStream> trustStoreStreamProvider) -
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
-
Constructor Details
-
AuthenticationTls
public AuthenticationTls() -
AuthenticationTls
-
AuthenticationTls
public AuthenticationTls(Supplier<ByteArrayInputStream> certStreamProvider, Supplier<ByteArrayInputStream> keyStreamProvider) -
AuthenticationTls
public AuthenticationTls(Supplier<ByteArrayInputStream> certStreamProvider, Supplier<ByteArrayInputStream> keyStreamProvider, Supplier<ByteArrayInputStream> trustStoreStreamProvider)
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getAuthMethodName
- Specified by:
getAuthMethodNamein interfaceorg.apache.pulsar.client.api.Authentication
-
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
-
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
-
getCertFilePath
-
getKeyFilePath
-