public interface AuthenticationState
| Modifier and Type | Method and Description |
|---|---|
org.apache.pulsar.common.api.AuthData |
authenticate(org.apache.pulsar.common.api.AuthData authData)
Challenge passed in auth data and get response data.
|
AuthenticationDataSource |
getAuthDataSource()
Return AuthenticationDataSource.
|
String |
getAuthRole()
After the authentication between client and broker completed,
get authentication role represent for the client.
|
default long |
getStateId()
Get AuthenticationState ID
|
boolean |
isComplete()
Whether the authentication is completed or not.
|
default boolean |
isExpired()
If the authentication state is expired, it will force the connection to be re-authenticated.
|
default org.apache.pulsar.common.api.AuthData |
refreshAuthentication()
If the authentication state supports refreshing and the credentials are expired,
the auth provider will call this method to initiate the refresh process.
|
String getAuthRole() throws AuthenticationException
AuthenticationExceptionorg.apache.pulsar.common.api.AuthData authenticate(org.apache.pulsar.common.api.AuthData authData)
throws AuthenticationException
AuthenticationExceptionAuthenticationDataSource getAuthDataSource()
boolean isComplete()
default long getStateId()
default boolean isExpired()
default org.apache.pulsar.common.api.AuthData refreshAuthentication()
throws AuthenticationException
The auth state here will return the broker side data that will be used to send a challenge to the client.
AuthData for the broker challenge to clientAuthenticationExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.