public final class AclEntry extends Object implements Serializable
AccessControlList
.Modifier and Type | Class and Description |
---|---|
static class |
AclEntry.Builder
Builder for
AclEntry . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static AclEntry |
fromCliString(String stringEntry)
Creates an
AclEntry from a string. |
static AclEntry |
fromCliStringWithoutPermissions(String stringEntry)
Creates an
AclEntry from a string without permissions. |
AclActions |
getActions() |
String |
getSubject() |
AclEntryType |
getType() |
int |
hashCode() |
boolean |
isDefault() |
void |
setDefault(boolean defaultEntry)
Sets the entry to be default.
|
String |
toCliString() |
static String |
toDefault(String stringEntry)
Convert a normal ACL to a string representing a default ACL.
|
String |
toString() |
public AclEntryType getType()
public String getSubject()
public AclActions getActions()
public boolean isDefault()
public void setDefault(boolean defaultEntry)
defaultEntry
- indicating default or notpublic String toCliString()
public static String toDefault(String stringEntry)
stringEntry
- normal ACL, if it is already default ACL, then return the default ACLpublic static AclEntry fromCliString(String stringEntry)
AclEntry
from a string. The possible string inputs are:
Owning User: user::[rwx]
Named User: user:[user name]:[rwx]
Owning Group: group::[rwx]
Named Group: group:[group name]:[rwx]
Mask: mask::[rwx]
Other: other::[rwx]
all the above entries, but with default:added to the beginning of the entry
default:user::[rwx]
[rwx]: all combinations are possible ('---' to 'rwx')stringEntry
- the CLI string representationAclEntry
instance created from the CLI string representationpublic static AclEntry fromCliStringWithoutPermissions(String stringEntry)
AclEntry
from a string without permissions. The possible string inputs are:
Named User: user:USER_NAME[:]
Named Group: group:GROUP_NAME[:]
Mask: mask[:][:]
Default versions of Named User: default:user:USER_NAME[:]
Default versions of Named Group: default:group:GROUP_NAME[:]
Default version of the mask: default: mask[:][:]stringEntry
- the CLI string representation, without permissionsAclEntry
instance created from the CLI string representationCopyright © 2023. All Rights Reserved.