public interface AuthPolicy
| Modifier and Type | Method and Description |
|---|---|
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 |
init()
Initialize the authentication policy.
|
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.
|
void init()
void setUserGroupIfNeeded(AlluxioURI uri)
uri - the path urivoid setUserGroup(AlluxioURI uri, long uid, long gid)
uri - the path uriuid - the user id to setgid - the gid to setjava.util.Optional<java.lang.Long> getUid(java.lang.String owner)
owner - the owner of the filejava.util.Optional<java.lang.Long> getGid(java.lang.String group)
group - the file groupCopyright © 2023. All Rights Reserved.