| Package | Description |
|---|---|
| com.facebook.presto.spi.connector | |
| com.facebook.presto.spi.connector.classloader | |
| com.facebook.presto.spi.security |
| Modifier and Type | Method and Description |
|---|---|
default void |
ConnectorAccessControl.checkCanGrantTablePrivilege(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
Privilege privilege,
SchemaTableName tableName,
PrestoPrincipal grantee,
boolean withGrantOption)
Check if identity is allowed to grant to any other user the specified privilege on the specified table.
|
default void |
ConnectorAccessControl.checkCanRevokeTablePrivilege(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
Privilege privilege,
SchemaTableName tableName,
PrestoPrincipal revokee,
boolean grantOptionFor)
Check if identity is allowed to revoke the specified privilege on the specified table from any user.
|
default void |
ConnectorMetadata.grantTablePrivileges(ConnectorSession session,
SchemaTableName tableName,
Set<Privilege> privileges,
PrestoPrincipal grantee,
boolean grantOption)
Grants the specified privilege to the specified user on the specified table
|
default Set<RoleGrant> |
ConnectorMetadata.listApplicableRoles(ConnectorSession session,
PrestoPrincipal principal)
List applicable roles, including the transitive grants, for the specified principal
|
default Set<RoleGrant> |
ConnectorMetadata.listRoleGrants(ConnectorSession session,
PrestoPrincipal principal)
List role grants for a given principal, not recursively.
|
default void |
ConnectorMetadata.revokeTablePrivileges(ConnectorSession session,
SchemaTableName tableName,
Set<Privilege> privileges,
PrestoPrincipal grantee,
boolean grantOption)
Revokes the specified privilege on the specified table from the specified user
|
| Modifier and Type | Method and Description |
|---|---|
default void |
ConnectorAccessControl.checkCanCreateRole(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
String role,
Optional<PrestoPrincipal> grantor) |
default void |
ConnectorAccessControl.checkCanGrantRoles(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
Set<String> roles,
Set<PrestoPrincipal> grantees,
boolean withAdminOption,
Optional<PrestoPrincipal> grantor,
String catalogName) |
default void |
ConnectorAccessControl.checkCanGrantRoles(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
Set<String> roles,
Set<PrestoPrincipal> grantees,
boolean withAdminOption,
Optional<PrestoPrincipal> grantor,
String catalogName) |
default void |
ConnectorAccessControl.checkCanRevokeRoles(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
Set<String> roles,
Set<PrestoPrincipal> grantees,
boolean adminOptionFor,
Optional<PrestoPrincipal> grantor,
String catalogName) |
default void |
ConnectorAccessControl.checkCanRevokeRoles(ConnectorTransactionHandle transactionHandle,
ConnectorIdentity identity,
Set<String> roles,
Set<PrestoPrincipal> grantees,
boolean adminOptionFor,
Optional<PrestoPrincipal> grantor,
String catalogName) |
default void |
ConnectorMetadata.createRole(ConnectorSession session,
String role,
Optional<PrestoPrincipal> grantor)
Creates the specified role.
|
default void |
ConnectorMetadata.grantRoles(ConnectorSession connectorSession,
Set<String> roles,
Set<PrestoPrincipal> grantees,
boolean withAdminOption,
Optional<PrestoPrincipal> grantor)
Grants the specified roles to the specified grantees
|
default void |
ConnectorMetadata.grantRoles(ConnectorSession connectorSession,
Set<String> roles,
Set<PrestoPrincipal> grantees,
boolean withAdminOption,
Optional<PrestoPrincipal> grantor)
Grants the specified roles to the specified grantees
|
default void |
ConnectorMetadata.revokeRoles(ConnectorSession connectorSession,
Set<String> roles,
Set<PrestoPrincipal> grantees,
boolean adminOptionFor,
Optional<PrestoPrincipal> grantor)
Revokes the specified roles from the specified grantees
|
default void |
ConnectorMetadata.revokeRoles(ConnectorSession connectorSession,
Set<String> roles,
Set<PrestoPrincipal> grantees,
boolean adminOptionFor,
Optional<PrestoPrincipal> grantor)
Revokes the specified roles from the specified grantees
|
| Modifier and Type | Method and Description |
|---|---|
void |
ClassLoaderSafeConnectorMetadata.grantTablePrivileges(ConnectorSession session,
SchemaTableName tableName,
Set<Privilege> privileges,
PrestoPrincipal grantee,
boolean grantOption) |
Set<RoleGrant> |
ClassLoaderSafeConnectorMetadata.listApplicableRoles(ConnectorSession session,
PrestoPrincipal principal) |
Set<RoleGrant> |
ClassLoaderSafeConnectorMetadata.listRoleGrants(ConnectorSession session,
PrestoPrincipal principal) |
void |
ClassLoaderSafeConnectorMetadata.revokeTablePrivileges(ConnectorSession session,
SchemaTableName tableName,
Set<Privilege> privileges,
PrestoPrincipal grantee,
boolean grantOption) |
| Modifier and Type | Method and Description |
|---|---|
void |
ClassLoaderSafeConnectorMetadata.createRole(ConnectorSession session,
String role,
Optional<PrestoPrincipal> grantor) |
void |
ClassLoaderSafeConnectorMetadata.grantRoles(ConnectorSession connectorSession,
Set<String> roles,
Set<PrestoPrincipal> grantees,
boolean withAdminOption,
Optional<PrestoPrincipal> grantor) |
void |
ClassLoaderSafeConnectorMetadata.grantRoles(ConnectorSession connectorSession,
Set<String> roles,
Set<PrestoPrincipal> grantees,
boolean withAdminOption,
Optional<PrestoPrincipal> grantor) |
void |
ClassLoaderSafeConnectorMetadata.revokeRoles(ConnectorSession connectorSession,
Set<String> roles,
Set<PrestoPrincipal> grantees,
boolean adminOptionFor,
Optional<PrestoPrincipal> grantor) |
void |
ClassLoaderSafeConnectorMetadata.revokeRoles(ConnectorSession connectorSession,
Set<String> roles,
Set<PrestoPrincipal> grantees,
boolean adminOptionFor,
Optional<PrestoPrincipal> grantor) |
| Modifier and Type | Method and Description |
|---|---|
PrestoPrincipal |
RoleGrant.getGrantee() |
PrestoPrincipal |
GrantInfo.getGrantee() |
| Modifier and Type | Method and Description |
|---|---|
Optional<PrestoPrincipal> |
GrantInfo.getGrantor() |
| Modifier and Type | Method and Description |
|---|---|
default void |
SystemAccessControl.checkCanGrantTablePrivilege(Identity identity,
Privilege privilege,
CatalogSchemaTableName table,
PrestoPrincipal grantee,
boolean withGrantOption)
Check if identity is allowed to grant the specified privilege to the grantee on the specified table.
|
default void |
SystemAccessControl.checkCanRevokeTablePrivilege(Identity identity,
Privilege privilege,
CatalogSchemaTableName table,
PrestoPrincipal revokee,
boolean grantOptionFor)
Check if identity is allowed to revoke the specified privilege on the specified table from the revokee.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
AccessDeniedException.denyGrantRoles(Set<String> roles,
Set<PrestoPrincipal> grantees) |
static void |
AccessDeniedException.denyRevokeRoles(Set<String> roles,
Set<PrestoPrincipal> grantees) |
| Constructor and Description |
|---|
GrantInfo(PrivilegeInfo privilegeInfo,
PrestoPrincipal grantee,
SchemaTableName schemaTableName,
Optional<PrestoPrincipal> grantor,
Optional<Boolean> withHierarchy) |
RoleGrant(PrestoPrincipal grantee,
String roleName,
boolean grantable) |
| Constructor and Description |
|---|
GrantInfo(PrivilegeInfo privilegeInfo,
PrestoPrincipal grantee,
SchemaTableName schemaTableName,
Optional<PrestoPrincipal> grantor,
Optional<Boolean> withHierarchy) |
Copyright © 2012–2019. All rights reserved.