Package com.mapr.security.zookeeper.auth
Class MaprZKAuthProvider
java.lang.Object
com.mapr.security.zookeeper.auth.MaprZKAuthProvider
- All Implemented Interfaces:
org.apache.zookeeper.server.auth.AuthenticationProvider
public class MaprZKAuthProvider
extends Object
implements org.apache.zookeeper.server.auth.AuthenticationProvider
Mapr Zookeeper Authentication and Authorization provider
authenticates incoming requests based on their userticket + epoch
since it is only server authentication
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAs this is called once during ProviderRegistry init this is a good place to init my own ticket and set Security needed data -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.zookeeper.KeeperException.CodehandleAuthentication(org.apache.zookeeper.server.ServerCnxn cnxn, byte[] authData) booleanbooleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.zookeeper.server.auth.AuthenticationProvider
getUserName
-
Field Details
-
MAPR_ZK_AUTH_PROVIDER_SCHEME
- See Also:
-
-
Constructor Details
-
MaprZKAuthProvider
As this is called once during ProviderRegistry init this is a good place to init my own ticket and set Security needed data- Throws:
InstantiationException
-
-
Method Details
-
getScheme
- Specified by:
getSchemein interfaceorg.apache.zookeeper.server.auth.AuthenticationProvider
-
handleAuthentication
public org.apache.zookeeper.KeeperException.Code handleAuthentication(org.apache.zookeeper.server.ServerCnxn cnxn, byte[] authData) - Specified by:
handleAuthenticationin interfaceorg.apache.zookeeper.server.auth.AuthenticationProvider
-
isAuthenticated
public boolean isAuthenticated()- Specified by:
isAuthenticatedin interfaceorg.apache.zookeeper.server.auth.AuthenticationProvider
-
isValid
- Specified by:
isValidin interfaceorg.apache.zookeeper.server.auth.AuthenticationProvider
-
matches
- Specified by:
matchesin interfaceorg.apache.zookeeper.server.auth.AuthenticationProvider
-