public abstract class ServerAuthenticationProvider extends Object implements AuthenticationProvider
AuthenticationProvider
that provides additional
parameters for more detailed authenticationModifier 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, wait
getScheme, getUserName, isAuthenticated, isValid
public 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)
AuthenticationProvider
handleAuthentication
in interface AuthenticationProvider
cnxn
- the cnxn that received the authentication information.authData
- the authentication data received.public final boolean matches(String id, String aclExpr)
AuthenticationProvider
matches
in interface AuthenticationProvider
id
- the id to check.aclExpr
- the expression to match ids against.Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.