public class MaprZKAuthProvider
extends java.lang.Object
implements org.apache.zookeeper.server.auth.AuthenticationProvider
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MAPR_ZK_AUTH_PROVIDER_SCHEME |
| Constructor and Description |
|---|
MaprZKAuthProvider()
As this is called once during ProviderRegistry init
this is a good place to init my own ticket and set Security needed data
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getScheme() |
org.apache.zookeeper.KeeperException.Code |
handleAuthentication(org.apache.zookeeper.server.ServerCnxn cnxn,
byte[] authData) |
boolean |
isAuthenticated() |
boolean |
isValid(java.lang.String id) |
boolean |
matches(java.lang.String id,
java.lang.String aclExpr) |
public static final java.lang.String MAPR_ZK_AUTH_PROVIDER_SCHEME
public MaprZKAuthProvider()
throws java.lang.InstantiationException
java.lang.InstantiationExceptionpublic java.lang.String getScheme()
getScheme in interface org.apache.zookeeper.server.auth.AuthenticationProviderpublic org.apache.zookeeper.KeeperException.Code handleAuthentication(org.apache.zookeeper.server.ServerCnxn cnxn,
byte[] authData)
handleAuthentication in interface org.apache.zookeeper.server.auth.AuthenticationProviderpublic boolean isAuthenticated()
isAuthenticated in interface org.apache.zookeeper.server.auth.AuthenticationProviderpublic boolean isValid(java.lang.String id)
isValid in interface org.apache.zookeeper.server.auth.AuthenticationProviderpublic boolean matches(java.lang.String id,
java.lang.String aclExpr)
matches in interface org.apache.zookeeper.server.auth.AuthenticationProvider