@InterfaceStability.Evolving public class AccessControlEntry extends Object
Constructor and Description |
---|
AccessControlEntry(String principal,
String host,
AclOperation operation,
AclPermissionType permissionType)
Create an instance of an access control entry with the provided parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
String |
host()
Return the host or `*` for all hosts.
|
boolean |
isUnknown()
Return true if this AclResource has any UNKNOWN components.
|
AclOperation |
operation()
Return the AclOperation.
|
AclPermissionType |
permissionType()
Return the AclPermissionType.
|
String |
principal()
Return the principal for this entry.
|
AccessControlEntryFilter |
toFilter()
Create a filter which matches only this AccessControlEntry.
|
String |
toString() |
public AccessControlEntry(String principal, String host, AclOperation operation, AclPermissionType permissionType)
principal
- non-null principalhost
- non-null hostoperation
- non-null operation, ANY is not an allowed operationpermissionType
- non-null permission type, ANY is not an allowed typepublic String principal()
public String host()
public AclOperation operation()
public AclPermissionType permissionType()
public AccessControlEntryFilter toFilter()
public boolean isUnknown()