public class CustomAuthPolicy extends LaunchUserGroupAuthPolicy
mFileSystem, mFuseFileSystem
Modifier and Type | Method and Description |
---|---|
static CustomAuthPolicy |
create(FileSystem fileSystem,
AlluxioConfiguration conf,
Optional<FuseFileSystem> fuseFileSystem)
Creates a new custom auth policy.
|
Optional<Long> |
getGid() |
Optional<Long> |
getUid() |
void |
setUserGroup(AlluxioURI uri,
long uid,
long gid)
Sets user and group based on user group input.
|
void |
setUserGroupIfNeeded(AlluxioURI uri)
Sets user and group based on authentication policy.
|
init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGid, getUid
public static CustomAuthPolicy create(FileSystem fileSystem, AlluxioConfiguration conf, Optional<FuseFileSystem> fuseFileSystem)
fileSystem
- file systemconf
- the Alluxio configurationfuseFileSystem
- fuse file systempublic void setUserGroupIfNeeded(AlluxioURI uri)
AuthPolicy
setUserGroupIfNeeded
in interface AuthPolicy
setUserGroupIfNeeded
in class LaunchUserGroupAuthPolicy
uri
- the path uripublic void setUserGroup(AlluxioURI uri, long uid, long gid)
AuthPolicy
setUserGroup
in interface AuthPolicy
setUserGroup
in class LaunchUserGroupAuthPolicy
uri
- the path uriuid
- the user id to setgid
- the gid to setpublic Optional<Long> getUid()
getUid
in interface AuthPolicy
getUid
in class LaunchUserGroupAuthPolicy
public Optional<Long> getGid()
getGid
in interface AuthPolicy
getGid
in class LaunchUserGroupAuthPolicy
Copyright © 2023. All Rights Reserved.