|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.security.authorize.AccessControlList
public class AccessControlList
Class representing a configured access control list.
Field Summary | |
---|---|
static String |
WILDCARD_ACL_VALUE
|
Constructor Summary | |
---|---|
AccessControlList()
This constructor exists primarily for AccessControlList to be Writable. |
|
AccessControlList(String aclString)
Construct a new ACL from a String representation of the same. |
Method Summary | |
---|---|
void |
addUser(String user)
|
String |
getACLString()
Returns the String representation of this ACL. |
boolean |
isAllAllowed()
|
boolean |
isUserAllowed(UserGroupInformation ugi)
|
void |
readFields(DataInput in)
Deserialize the fields of this object from in . |
String |
toString()
|
void |
write(DataOutput out)
Serialize the fields of this object to out . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String WILDCARD_ACL_VALUE
Constructor Detail |
---|
public AccessControlList()
public AccessControlList(String aclString)
aclString
- String representation of the ACLMethod Detail |
---|
public boolean isAllAllowed()
public void addUser(String user)
public boolean isUserAllowed(UserGroupInformation ugi)
public String toString()
toString
in class Object
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
out
- DataOuput
to serialize this object into.
IOException
public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.
IOException
public String getACLString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |