public class AuthenticationService extends Object implements Closeable
| Constructor and Description |
|---|
AuthenticationService(ServiceConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
String |
authenticate(AuthenticationDataSource authData,
String authMethodName) |
String |
authenticateHttpRequest(javax.servlet.http.HttpServletRequest request) |
void |
close() |
Optional<String> |
getAnonymousUserRole() |
AuthenticationProvider |
getAuthenticationProvider(String authMethodName) |
public AuthenticationService(ServiceConfiguration conf) throws PulsarServerException
PulsarServerExceptionpublic String authenticate(AuthenticationDataSource authData, String authMethodName) throws AuthenticationException
AuthenticationExceptionpublic String authenticateHttpRequest(javax.servlet.http.HttpServletRequest request) throws AuthenticationException
AuthenticationExceptionpublic AuthenticationProvider getAuthenticationProvider(String authMethodName)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.