public class OneStageAuthenticationState extends Object implements AuthenticationState
| Constructor and Description |
|---|
OneStageAuthenticationState(org.apache.pulsar.common.api.AuthData authData,
SocketAddress remoteAddress,
SSLSession sslSession,
AuthenticationProvider provider) |
OneStageAuthenticationState(javax.servlet.http.HttpServletRequest request,
AuthenticationProvider provider) |
| 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.
|
boolean |
isComplete()
Whether the authentication is completed or not.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticateAsync, getStateId, isExpired, refreshAuthenticationpublic OneStageAuthenticationState(org.apache.pulsar.common.api.AuthData authData,
SocketAddress remoteAddress,
SSLSession sslSession,
AuthenticationProvider provider)
throws AuthenticationException
AuthenticationExceptionpublic OneStageAuthenticationState(javax.servlet.http.HttpServletRequest request,
AuthenticationProvider provider)
throws AuthenticationException
AuthenticationExceptionpublic String getAuthRole()
AuthenticationStategetAuthRole in interface AuthenticationStatepublic AuthenticationDataSource getAuthDataSource()
AuthenticationStategetAuthDataSource in interface AuthenticationStatepublic org.apache.pulsar.common.api.AuthData authenticate(org.apache.pulsar.common.api.AuthData authData)
AuthenticationStateauthenticate in interface AuthenticationStatepublic boolean isComplete()
AuthenticationStateisComplete in interface AuthenticationStateCopyright © 2017–2022 Apache Software Foundation. All rights reserved.