public interface AuthPolicy
Modifier and Type | Method and Description |
---|---|
Optional<Long> |
getGid() |
default Optional<Long> |
getGid(String group)
Gets the gid based on the auth policy and file group.
|
Optional<Long> |
getUid() |
default Optional<Long> |
getUid(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 setdefault Optional<Long> getUid(String owner)
owner
- the owner of the fileCopyright © 2023. All Rights Reserved.