@Evolving public class AccessControlEntry extends java.lang.Object
Constructor | Description |
---|---|
AccessControlEntry(java.lang.String principal,
java.lang.String host,
AclOperation operation,
AclPermissionType permissionType) |
Create an instance of an access control entry with the provided parameters.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
int |
hashCode() |
|
java.lang.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.
|
java.lang.String |
principal() |
Return the principal for this entry.
|
AccessControlEntryFilter |
toFilter() |
Create a filter which matches only this AccessControlEntry.
|
java.lang.String |
toString() |
public AccessControlEntry(java.lang.String principal, java.lang.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 java.lang.String principal()
public java.lang.String host()
public AclOperation operation()
public AclPermissionType permissionType()
public AccessControlEntryFilter toFilter()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isUnknown()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object