Class AuthenticationDataTls
java.lang.Object
org.apache.pulsar.client.impl.auth.AuthenticationDataTls
- All Implemented Interfaces:
Serializable,org.apache.pulsar.client.api.AuthenticationDataProvider
public class AuthenticationDataTls
extends Object
implements org.apache.pulsar.client.api.AuthenticationDataProvider
- See Also:
-
Field Summary
FieldsFields inherited from interface org.apache.pulsar.client.api.AuthenticationDataProvider
PULSAR_AUTH_METHOD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationDataTls(String certFilePath, String keyFilePath) AuthenticationDataTls(Supplier<ByteArrayInputStream> certStreamProvider, Supplier<ByteArrayInputStream> keyStreamProvider) AuthenticationDataTls(Supplier<ByteArrayInputStream> certStreamProvider, Supplier<ByteArrayInputStream> keyStreamProvider, Supplier<ByteArrayInputStream> trustStoreStreamProvider) -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethods 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.AuthenticationDataProvider
authenticate, getCommandData, getHttpAuthType, getTlsKeyStoreParams, hasDataForHttp, hasDataFromCommand
-
Field Details
-
tlsCertificates
-
tlsPrivateKey
-
-
Constructor Details
-
AuthenticationDataTls
- Throws:
KeyManagementException
-
AuthenticationDataTls
public AuthenticationDataTls(Supplier<ByteArrayInputStream> certStreamProvider, Supplier<ByteArrayInputStream> keyStreamProvider) throws KeyManagementException - Throws:
KeyManagementException
-
AuthenticationDataTls
public AuthenticationDataTls(Supplier<ByteArrayInputStream> certStreamProvider, Supplier<ByteArrayInputStream> keyStreamProvider, Supplier<ByteArrayInputStream> trustStoreStreamProvider) throws KeyManagementException - Throws:
KeyManagementException
-
-
Method Details
-
hasDataForTls
public boolean hasDataForTls()- Specified by:
hasDataForTlsin interfaceorg.apache.pulsar.client.api.AuthenticationDataProvider
-
getHttpHeaders
- Specified by:
getHttpHeadersin interfaceorg.apache.pulsar.client.api.AuthenticationDataProvider
-
getTlsCertificates
- Specified by:
getTlsCertificatesin interfaceorg.apache.pulsar.client.api.AuthenticationDataProvider
-
getTlsPrivateKey
- Specified by:
getTlsPrivateKeyin interfaceorg.apache.pulsar.client.api.AuthenticationDataProvider
-
getTlsTrustStoreStream
- Specified by:
getTlsTrustStoreStreamin interfaceorg.apache.pulsar.client.api.AuthenticationDataProvider
-
getTlsCerificateFilePath
- Specified by:
getTlsCerificateFilePathin interfaceorg.apache.pulsar.client.api.AuthenticationDataProvider
-
getTlsPrivateKeyFilePath
- Specified by:
getTlsPrivateKeyFilePathin interfaceorg.apache.pulsar.client.api.AuthenticationDataProvider
-