Class AuthenticationService
java.lang.Object
org.apache.pulsar.broker.authentication.AuthenticationService
- All Implemented Interfaces:
Closeable
,AutoCloseable
Authentication service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticateHttpRequest
(javax.servlet.http.HttpServletRequest request) Deprecated.boolean
authenticateHttpRequest
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) authenticateHttpRequest
(javax.servlet.http.HttpServletRequest request, AuthenticationDataSource authData) Deprecated.void
close()
getAuthenticationProvider
(String authMethodName)
-
Constructor Details
-
AuthenticationService
- Throws:
PulsarServerException
-
-
Method Details
-
authenticateHttpRequest
public boolean authenticateHttpRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception - Throws:
Exception
-
authenticateHttpRequest
@Deprecated(since="3.0.0") public String authenticateHttpRequest(javax.servlet.http.HttpServletRequest request, AuthenticationDataSource authData) throws AuthenticationException Deprecated.- Throws:
AuthenticationException
-
authenticateHttpRequest
@Deprecated public String authenticateHttpRequest(javax.servlet.http.HttpServletRequest request) throws AuthenticationException Deprecated.Mark this function as deprecated, it is recommended to use a method with the AuthenticationDataSource signature to implement it.- Throws:
AuthenticationException
-
getAuthenticationProvider
-
getAnonymousUserRole
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
authenticateHttpRequest(HttpServletRequest, HttpServletResponse)
.