public interface AuthenticationDataProvider extends Serializable
Modifier and Type | Method and Description |
---|---|
default AuthData |
authenticate(AuthData data)
For mutual authentication, This method use passed in `data` to evaluate and challenge,
then returns null if authentication has completed;
returns authenticated data back to server side, if authentication has not completed.
|
default String |
getCommandData() |
default String |
getHttpAuthType() |
default Set<Map.Entry<String,String>> |
getHttpHeaders() |
default Certificate[] |
getTlsCertificates() |
default PrivateKey |
getTlsPrivateKey() |
default boolean |
hasDataForHttp()
Check if data for HTTP are available.
|
default boolean |
hasDataForTls()
Check if data for TLS are available.
|
default boolean |
hasDataFromCommand()
Check if data from Pulsar protocol are available.
|
default boolean hasDataForTls()
default Certificate[] getTlsCertificates()
default PrivateKey getTlsPrivateKey()
default boolean hasDataForHttp()
default String getHttpAuthType()
null
if the request will not be authenticated.default Set<Map.Entry<String,String>> getHttpHeaders() throws Exception
Exception
default boolean hasDataFromCommand()
default String getCommandData()
default AuthData authenticate(AuthData data) throws AuthenticationException
Mainly used for mutual authentication like sasl.
AuthenticationException
Copyright © 2017–2020 Apache Software Foundation. All rights reserved.