DigestAuthenticationProvider
, IPAuthenticationProvider
, SASLAuthenticationProvider
public interface AuthenticationProvider
Modifier and Type | Method | Description |
---|---|---|
java.lang.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(java.lang.String id) |
Validates the syntax of an id.
|
boolean |
matches(java.lang.String id,
java.lang.String aclExpr) |
This method is called to see if the given id matches the given id
expression in the ACL.
|
java.lang.String getScheme()
KeeperException.Code handleAuthentication(ServerCnxn cnxn, byte[] authData)
cnxn
- the cnxn that received the authentication information.authData
- the authentication data received.boolean matches(java.lang.String id, java.lang.String aclExpr)
id
- the id to check.aclExpr
- the expression to match ids against.boolean isAuthenticated()
boolean isValid(java.lang.String id)
id
- the id to validate.Copyright © 2018 The Apache Software Foundation