protected AuthenticationTokenSecretManager createSecretManager() {
    if (!isSecurityEnabled) return null;
    if (server == null) return null;
    Configuration conf = server.getConfiguration();
    long keyUpdateInterval = conf.getLong("hbase.auth.key.update.interval", 24 * 60 * 60 * 1000);
    long maxAge = conf.getLong("hbase.auth.token.max.lifetime", 7 * 24 * 60 * 60 * 1000);
    return new AuthenticationTokenSecretManager(conf, server.getZooKeeper(),
      server.getServerName().toString(), keyUpdateInterval, maxAge);
  }
Constructs a server listening on the named port and address.
@param server           hosting instance of {@link Server}. We will do authentications if an
                        instance else pass null for no authentication check.
@param name             Used keying this rpc servers' metrics and for naming the Listener
                        thread.
@param services         A list of services.
@param bindAddress      Where to listen
@param reservoirEnabled Enable ByteBufferPool or not.
hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java