Package org.apache.gravitino.credential
Class PathBasedCredentialContext
java.lang.Object
org.apache.gravitino.credential.PathBasedCredentialContext
- All Implemented Interfaces:
CredentialContext
LocationContext is generated when user requesting resources associated with storage location like
table, fileset, etc.
-
Constructor Details
-
PathBasedCredentialContext
Constructor for PathBasedCredentialContext.- Parameters:
userName- the name of the userwritePaths- the set of paths that the user can write toreadPaths- the set of paths that the user can read from
-
-
Method Details
-
getUserName
Description copied from interface:CredentialContextProviding the username.- Specified by:
getUserNamein interfaceCredentialContext- Returns:
- A string identifying user name.
-
getWritePaths
Get the set of paths that the user can write to.- Returns:
- set of paths that the user can write to
-
getReadPaths
Get the set of paths that the user can read from.- Returns:
- set of paths that the user can read from
-
hashCode
public int hashCode() -
equals
-
toString
-