public class SaslAuthenticationState extends Object implements org.apache.pulsar.broker.authentication.AuthenticationState
| Constructor and Description |
|---|
SaslAuthenticationState(PulsarSaslServer server) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.pulsar.common.api.AuthData |
authenticate(org.apache.pulsar.common.api.AuthData authData)
Returns null if authentication has completed, and no auth data is required to send back to client.
|
org.apache.pulsar.broker.authentication.AuthenticationDataSource |
getAuthDataSource() |
String |
getAuthRole() |
long |
getStateId() |
boolean |
isComplete() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticateAsync, isExpired, refreshAuthenticationpublic SaslAuthenticationState(PulsarSaslServer server)
public String getAuthRole()
getAuthRole in interface org.apache.pulsar.broker.authentication.AuthenticationStatepublic org.apache.pulsar.broker.authentication.AuthenticationDataSource getAuthDataSource()
getAuthDataSource in interface org.apache.pulsar.broker.authentication.AuthenticationStatepublic boolean isComplete()
isComplete in interface org.apache.pulsar.broker.authentication.AuthenticationStatepublic org.apache.pulsar.common.api.AuthData authenticate(org.apache.pulsar.common.api.AuthData authData) throws AuthenticationException
authenticate in interface org.apache.pulsar.broker.authentication.AuthenticationStateAuthenticationExceptionpublic long getStateId()
getStateId in interface org.apache.pulsar.broker.authentication.AuthenticationStateCopyright © 2017–2021 Apache Software Foundation. All rights reserved.