Class AuthenticationTls
java.lang.Object
org.apache.pulsar.client.impl.auth.AuthenticationTls
- All Implemented Interfaces:
Closeable
,Serializable
,AutoCloseable
,Authentication
,EncodedAuthenticationParameterSupport
public class AuthenticationTls
extends Object
implements Authentication, 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, wait
Methods 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getAuthMethodName
- Specified by:
getAuthMethodName
in interfaceAuthentication
-
getAuthData
- Specified by:
getAuthData
in interfaceAuthentication
- Throws:
PulsarClientException
-
configure
- Specified by:
configure
in interfaceEncodedAuthenticationParameterSupport
-
configure
Deprecated.- Specified by:
configure
in interfaceAuthentication
-
start
- Specified by:
start
in interfaceAuthentication
- Throws:
PulsarClientException
-
getCertFilePath
-
getKeyFilePath
-