protected boolean isSideChannelActive(){
  return System.getenv(SIDECHANNEL_AUTH_ENV_NAME) != null;
}

protected boolean isSideChannelActive ( ) { return System . getenv ( SIDECHANNEL_AUTH_ENV_NAME ) != null ; }
returns whether it appears that side channel auth should be used when creating the schedulerdriver . side channel auth may take the form of bouncer - based framework authentication or potentially other methods in the future ( eg kerberos ) . broken out into a separate function to allow easy customization in tests .
