|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthenticationProvider
This interface is implemented by authentication providers to add new kinds of authentication schemes to ZooKeeper.
Method Summary | |
---|---|
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. |
Method Detail |
---|
String getScheme()
KeeperException.Code handleAuthentication(ServerCnxn cnxn, byte[] authData)
cnxn
- the cnxn that received the authentication information.authData
- the authentication data received.
boolean matches(String id, String aclExpr)
id
- the id to check.aclExpr
- the expression to match ids against.
boolean isAuthenticated()
boolean isValid(String id)
id
- the id to validate.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |