public class EnsembleAuthenticationProvider extends Object implements AuthenticationProvider
Modifier and Type | Field and Description |
---|---|
static String |
ENSEMBLE_PROPERTY |
Constructor and Description |
---|
EnsembleAuthenticationProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getScheme()
The String used to represent this provider.
|
KeeperException.Code |
handleAuthentication(ServerCnxn cnxn,
byte[] authData)
This method is called when a client passes authentication data for this
scheme.
|
boolean |
isAuthenticated()
This method is used to check if the authentication done by this provider
should be used to identify the creator of a node.
|
boolean |
isValid(String id)
Validates the syntax of an id.
|
boolean |
matches(String id,
String aclExpr)
This method is called to see if the given id matches the given id
expression in the ACL.
|
void |
setEnsembleNames(String namesCSV) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUserName
public static final String ENSEMBLE_PROPERTY
public void setEnsembleNames(String namesCSV)
public String getScheme()
AuthenticationProvider
getScheme
in interface AuthenticationProvider
public 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 boolean matches(String id, String aclExpr)
AuthenticationProvider
matches
in interface AuthenticationProvider
id
- the id to check.aclExpr
- the expression to match ids against.public boolean isAuthenticated()
AuthenticationProvider
isAuthenticated
in interface AuthenticationProvider
public boolean isValid(String id)
AuthenticationProvider
isValid
in interface AuthenticationProvider
id
- the id to validate.Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.