public class AuthenticationContextModules extends Object
AuthenticationContext via an AbstractModule based on the context in which
it is being invoked.| Constructor and Description |
|---|
AuthenticationContextModules() |
| Modifier and Type | Method and Description |
|---|---|
com.google.inject.AbstractModule |
getMasterModule()
An
AuthenticationContext for HTTP requests in Master. |
com.google.inject.AbstractModule |
getNoOpModule()
An
AuthenticationContext for use in tests that do not need authentication/authorization. |
com.google.inject.AbstractModule |
getProgramContainerModule()
An
AuthenticationContext for use in program containers. |
public com.google.inject.AbstractModule getMasterModule()
AuthenticationContext for HTTP requests in Master. The authentication details in this context are
derived from SecurityRequestContext.SecurityRequestContextpublic com.google.inject.AbstractModule getProgramContainerModule()
AuthenticationContext for use in program containers. The authentication details in this context are
determined based on the UserGroupInformation of the user running the program.public com.google.inject.AbstractModule getNoOpModule()
AuthenticationContext for use in tests that do not need authentication/authorization. The
authentication details in this context are determined based on the user.name system property.Copyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.