Class AuthenticationDataTls
java.lang.Object
org.apache.pulsar.client.impl.auth.AuthenticationDataTls
- All Implemented Interfaces:
Serializable
,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 TypeMethodDescriptionboolean
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.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:
hasDataForTls
in interfaceAuthenticationDataProvider
-
getHttpHeaders
- Specified by:
getHttpHeaders
in interfaceAuthenticationDataProvider
-
getTlsCertificates
- Specified by:
getTlsCertificates
in interfaceAuthenticationDataProvider
-
getTlsPrivateKey
- Specified by:
getTlsPrivateKey
in interfaceAuthenticationDataProvider
-
getTlsTrustStoreStream
- Specified by:
getTlsTrustStoreStream
in interfaceAuthenticationDataProvider
-
getTlsCertificateFilePath
- Specified by:
getTlsCertificateFilePath
in interfaceAuthenticationDataProvider
-
getTlsPrivateKeyFilePath
- Specified by:
getTlsPrivateKeyFilePath
in interfaceAuthenticationDataProvider
-