public final class SystemUserGroupAuthPolicy extends LaunchUserGroupAuthPolicy
mFileSystem, mFuseFileSystem
Modifier and Type | Method and Description |
---|---|
static SystemUserGroupAuthPolicy |
create(FileSystem fileSystem,
AlluxioConfiguration conf,
Optional<FuseFileSystem> fuseFileSystem)
Creates a new system auth policy.
|
Optional<Long> |
getGid() |
Optional<Long> |
getGid(String group)
Gets the gid based on the auth policy and file group.
|
Optional<Long> |
getUid() |
Optional<Long> |
getUid(String owner)
Gets the uid based on the auth policy and file owner.
|
void |
setUserGroupIfNeeded(AlluxioURI uri)
Sets user and group based on authentication policy.
|
init, setUserGroup
public static SystemUserGroupAuthPolicy 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 Optional<Long> getUid()
getUid
in interface AuthPolicy
getUid
in class LaunchUserGroupAuthPolicy
public Optional<Long> getUid(String owner)
AuthPolicy
owner
- the owner of the filepublic Optional<Long> getGid()
getGid
in interface AuthPolicy
getGid
in class LaunchUserGroupAuthPolicy
public Optional<Long> getGid(String group)
AuthPolicy
group
- the file groupCopyright © 2023. All Rights Reserved.