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 Details

  • Constructor Details

    • MaprZKAuthProvider

      public MaprZKAuthProvider() throws InstantiationException
      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

      public String getScheme()
      Specified by:
      getScheme in interface org.apache.zookeeper.server.auth.AuthenticationProvider
    • handleAuthentication

      public org.apache.zookeeper.KeeperException.Code handleAuthentication(org.apache.zookeeper.server.ServerCnxn cnxn, byte[] authData)
      Specified by:
      handleAuthentication in interface org.apache.zookeeper.server.auth.AuthenticationProvider
    • isAuthenticated

      public boolean isAuthenticated()
      Specified by:
      isAuthenticated in interface org.apache.zookeeper.server.auth.AuthenticationProvider
    • isValid

      public boolean isValid(String id)
      Specified by:
      isValid in interface org.apache.zookeeper.server.auth.AuthenticationProvider
    • matches

      public boolean matches(String id, String aclExpr)
      Specified by:
      matches in interface org.apache.zookeeper.server.auth.AuthenticationProvider