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 java.lang.Object implements org.apache.zookeeper.server.auth.AuthenticationProviderMapr Zookeeper Authentication and Authorization provider authenticates incoming requests based on their userticket + epoch since it is only server authentication
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMAPR_ZK_AUTH_PROVIDER_SCHEME
-
Constructor Summary
Constructors Constructor 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetScheme()org.apache.zookeeper.KeeperException.CodehandleAuthentication(org.apache.zookeeper.server.ServerCnxn cnxn, byte[] authData)booleanisAuthenticated()booleanisValid(java.lang.String id)booleanmatches(java.lang.String id, java.lang.String aclExpr)
-
-
-
Field Detail
-
MAPR_ZK_AUTH_PROVIDER_SCHEME
public static final java.lang.String MAPR_ZK_AUTH_PROVIDER_SCHEME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getScheme
public java.lang.String 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
public boolean isValid(java.lang.String id)
- Specified by:
isValidin interfaceorg.apache.zookeeper.server.auth.AuthenticationProvider
-
matches
public boolean matches(java.lang.String id, java.lang.String aclExpr)- Specified by:
matchesin interfaceorg.apache.zookeeper.server.auth.AuthenticationProvider
-
-