Package org.apache.hadoop.yarn.security
Class AccessRequest
java.lang.Object
org.apache.hadoop.yarn.security.AccessRequest
This request object contains all the context information to determine whether
a user has permission to access the target entity.
user : the user who's currently accessing
accessType : the access type against the entity.
entity : the target object user is accessing.
appId : the associated app Id for current access. This could be null
if no app is associated.
appName : the associated app name for current access. This could be null if
no app is associated.
remoteAddress : The caller's remote ip address.
forwardedAddresses : In case this is an http request, this contains the
originating IP address of a client connecting to a web
server through an HTTP proxy or load balancer. This
parameter is null, if it's a RPC request.
-
Constructor Summary
ConstructorsConstructorDescriptionAccessRequest(PrivilegedEntity entity, org.apache.hadoop.security.UserGroupInformation user, AccessType accessType, String appId, String appName, String remoteAddress, List<String> forwardedAddresses) -
Method Summary
-
Constructor Details
-
AccessRequest
public AccessRequest(PrivilegedEntity entity, org.apache.hadoop.security.UserGroupInformation user, AccessType accessType, String appId, String appName, String remoteAddress, List<String> forwardedAddresses)
-
-
Method Details
-
getUser
public org.apache.hadoop.security.UserGroupInformation getUser() -
getAccessType
-
getAppId
-
getAppName
-
getEntity
-
getForwardedAddresses
-
getRemoteAddress
-