public class AuthenticationTls extends Object implements Authentication, EncodedAuthenticationParameterSupport
| Constructor and Description |
|---|
AuthenticationTls() |
AuthenticationTls(String certFilePath,
String keyFilePath) |
AuthenticationTls(Supplier<ByteArrayInputStream> certStreamProvider,
Supplier<ByteArrayInputStream> keyStreamProvider) |
AuthenticationTls(Supplier<ByteArrayInputStream> certStreamProvider,
Supplier<ByteArrayInputStream> keyStreamProvider,
Supplier<ByteArrayInputStream> trustStoreStreamProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(Map<String,String> authParams)
Deprecated.
|
void |
configure(String encodedAuthParamString) |
AuthenticationDataProvider |
getAuthData() |
String |
getAuthMethodName() |
String |
getCertFilePath() |
String |
getKeyFilePath() |
void |
start() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticationStage, getAuthData, newRequestHeaderpublic AuthenticationTls()
public AuthenticationTls(Supplier<ByteArrayInputStream> certStreamProvider, Supplier<ByteArrayInputStream> keyStreamProvider)
public AuthenticationTls(Supplier<ByteArrayInputStream> certStreamProvider, Supplier<ByteArrayInputStream> keyStreamProvider, Supplier<ByteArrayInputStream> trustStoreStreamProvider)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic String getAuthMethodName()
getAuthMethodName in interface Authenticationpublic AuthenticationDataProvider getAuthData() throws PulsarClientException
getAuthData in interface AuthenticationPulsarClientExceptionpublic void configure(String encodedAuthParamString)
configure in interface EncodedAuthenticationParameterSupport@Deprecated public void configure(Map<String,String> authParams)
configure in interface Authenticationpublic void start()
throws PulsarClientException
start in interface AuthenticationPulsarClientExceptionpublic String getCertFilePath()
public String getKeyFilePath()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.