public class CustomAuthPolicy extends LaunchUserGroupAuthPolicy
mFileSystem, mFuseFileSystem| Modifier and Type | Method and Description |
|---|---|
static CustomAuthPolicy |
create(FileSystem fileSystem,
AlluxioConfiguration conf,
java.util.Optional<FuseFileSystem> fuseFileSystem)
Creates a new custom auth policy.
|
java.util.Optional<java.lang.Long> |
getGid(java.lang.String group)
Gets the gid based on the auth policy and file group.
|
java.util.Optional<java.lang.Long> |
getUid(java.lang.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, setUserGrouppublic static CustomAuthPolicy create(FileSystem fileSystem, AlluxioConfiguration conf, java.util.Optional<FuseFileSystem> fuseFileSystem)
fileSystem - file systemconf - the Alluxio configurationfuseFileSystem - fuse file systempublic void setUserGroupIfNeeded(AlluxioURI uri)
AuthPolicysetUserGroupIfNeeded in interface AuthPolicysetUserGroupIfNeeded in class LaunchUserGroupAuthPolicyuri - the path uripublic java.util.Optional<java.lang.Long> getUid(java.lang.String owner)
AuthPolicygetUid in interface AuthPolicygetUid in class LaunchUserGroupAuthPolicyowner - the owner of the filepublic java.util.Optional<java.lang.Long> getGid(java.lang.String group)
AuthPolicygetGid in interface AuthPolicygetGid in class LaunchUserGroupAuthPolicygroup - the file groupCopyright © 2023. All Rights Reserved.