public abstract class ServerAuthenticationProvider extends Object implements AuthenticationProvider
AuthenticationProvider that provides additional
parameters for more detailed authentication| Modifier and Type | Class and Description |
|---|---|
static class |
ServerAuthenticationProvider.MatchValues |
static class |
ServerAuthenticationProvider.ServerObjs |
| Constructor and Description |
|---|
ServerAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
abstract KeeperException.Code |
handleAuthentication(ServerAuthenticationProvider.ServerObjs serverObjs,
byte[] authData)
This method is called when a client passes authentication data for this
scheme.
|
KeeperException.Code |
handleAuthentication(ServerCnxn cnxn,
byte[] authData)
This method is called when a client passes authentication data for this
scheme.
|
abstract boolean |
matches(ServerAuthenticationProvider.ServerObjs serverObjs,
ServerAuthenticationProvider.MatchValues matchValues)
This method is called to see if the given id matches the given id
expression in the ACL.
|
boolean |
matches(String id,
String aclExpr)
This method is called to see if the given id matches the given id
expression in the ACL.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetScheme, getUserName, isAuthenticated, isValidpublic abstract KeeperException.Code handleAuthentication(ServerAuthenticationProvider.ServerObjs serverObjs, byte[] authData)
serverObjs - cnxn/server/etc that received the authentication information.authData - the authentication data received.public abstract boolean matches(ServerAuthenticationProvider.ServerObjs serverObjs, ServerAuthenticationProvider.MatchValues matchValues)
serverObjs - cnxn/server/etc that received the authentication information.matchValues - values to be matchedpublic final KeeperException.Code handleAuthentication(ServerCnxn cnxn, byte[] authData)
AuthenticationProviderhandleAuthentication in interface AuthenticationProvidercnxn - the cnxn that received the authentication information.authData - the authentication data received.public final boolean matches(String id, String aclExpr)
AuthenticationProvidermatches in interface AuthenticationProviderid - the id to check.aclExpr - the expression to match ids against.Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.