Grantee
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Grantee | changeAuthRole
The role for changing authorization rights. |
| pack-priv Database | database
Used only to pass the SchemaManager to Grantees for checking schema authorizations. |
| pack-priv Grantee | dbaRole
The DBA role. |
| private String | digestAlgo
MessageDigest algorithm |
| private MessageDigest | digester
MessageDigest instance for database |
| private OrderedHashMap | map
Map of grantee-String-to-Grantee-objects. |
| pack-priv Grantee | publicRole
The PUBLIC role. |
| pack-priv static final IntValueHashMap | |
| private OrderedHashMap | roleMap
Map of role-Strings-to-Grantee-object. |
| pack-priv Grantee | schemaRole
The role for schema creation rights. |
| pack-priv Grantee | scriptOpsRole
The role for script operations rights. |
| pack-priv static User | systemAuthorisation
The grantee object for the _SYSTEM role. |
| Access | Constructor and Description |
|---|---|
| public | GranteeManager(Database
Only needed to link to the RoleManager later on. database)Construct the GranteeManager for a Database. |
| Modifier and Type | Method and Description |
|---|---|
| public Grantee | |
| public User | |
| public void | |
| public void | |
| pack-priv String | |
| public void | |
| public Grantee | |
| public static int | |
| public Grantee | |
| public String | |
| pack-priv synchronized MessageDigest | |
| public Collection | |
| public static int | |
| public List | |
| public Grantee | |
| public Set | |
| public Collection | |
| public List | |
| public static Grantee | |
| public void | grant(Session session, OrderedHashSet<String> granteeList, SchemaObject dbObject, Right right, Grantee grantor, boolean withGrantOption)
Grants the rights represented by the Right object on dbObject to the Grantee objects in granteeList. |
| public void | grant(Session session, OrderedHashSet<String> granteeList, SchemaObject[] routines, Right right, Grantee grantor, boolean withGrantOption)
|
| public void | |
| public void | |
| pack-priv boolean | |
| public static boolean | |
| public static boolean | |
| public boolean | |
| public void | removeDbObject(HsqlNameManager.
Removes all rights mappings for the database object identified by the name argument from all Grantee objects in the database. |
| public void | |
| pack-priv void | |
| public boolean | |
| public void | removeNewUser(HsqlNameManager.
Only used for a recently added user with no dependencies |
| public void | |
| public void | revoke(OrderedHashSet<String> granteeList, SchemaObject dbObject, Right rights, Grantee grantor, boolean grantOption, boolean cascade)
Revokes the rights represented by the Right object on dbObject from the Grantee objects in granteeList. |
| public void | revoke(OrderedHashSet<String> granteeList, SchemaObject[] routines, Right rights, Grantee grantor, boolean grantOption, boolean cascade)
|
| public void | |
| pack-priv void | |
| public static boolean |
| changeAuthRole | back to summary |
|---|---|
| pack-priv Grantee changeAuthRole The role for changing authorization rights. | |
| database | back to summary |
|---|---|
| pack-priv Database database Used only to pass the SchemaManager to Grantees for checking schema authorizations. | |
| dbaRole | back to summary |
|---|---|
| pack-priv Grantee dbaRole The DBA role. | |
| digestAlgo | back to summary |
|---|---|
| private String digestAlgo MessageDigest algorithm | |
| digester | back to summary |
|---|---|
| private MessageDigest digester MessageDigest instance for database | |
| map | back to summary |
|---|---|
| private OrderedHashMap<String, Grantee> map Map of grantee-String-to-Grantee-objects. Keys include all USER and ROLE names | |
| publicRole | back to summary |
|---|---|
| pack-priv Grantee publicRole The PUBLIC role. | |
| rightsStringLookup | back to summary |
|---|---|
| pack-priv static final IntValueHashMap<String> rightsStringLookup | |
| roleMap | back to summary |
|---|---|
| private OrderedHashMap<String, Grantee> roleMap Map of role-Strings-to-Grantee-object. Keys include all ROLES names | |
| schemaRole | back to summary |
|---|---|
| pack-priv Grantee schemaRole The role for schema creation rights. | |
| scriptOpsRole | back to summary |
|---|---|
| pack-priv Grantee scriptOpsRole The role for script operations rights. | |
| systemAuthorisation | back to summary |
|---|---|
| pack-priv static User systemAuthorisation The grantee object for the _SYSTEM role. | |
| GranteeManager | back to summary |
|---|---|
| public GranteeManager(Database database) Construct the GranteeManager for a Database. Construct special Grantee objects for _SYSTEM, PUBLIC and DBA, and add them to the Grantee map.
| |
| addRole | back to summary |
|---|---|
| public Grantee addRole(HsqlNameManager. Creates a new Role object. A set of constraints regarding user creation is imposed:
| |
| addUser | back to summary |
|---|---|
| public User addUser(HsqlNameManager. | |
| checkGranteeList | back to summary |
|---|---|
| public void checkGranteeList(OrderedHashSet<String> granteeList) | |
| checkRoleList | back to summary |
|---|---|
| public void checkRoleList(String granteeName, OrderedHashSet<String> roleList, Grantee grantor, boolean grant) | |
| digest | back to summary |
|---|---|
| pack-priv String digest(String string) throws RuntimeException | |
| dropRole | back to summary |
|---|---|
| public void dropRole(String name) Attempts to drop a Role with the specified name from this object's set. A successful drop action consists of:
| |
| get | back to summary |
|---|---|
| public Grantee get(String name) | |
| getCheckSingleRight | back to summary |
|---|---|
| public static int getCheckSingleRight(String token) | |
| getDBARole | back to summary |
|---|---|
| public Grantee getDBARole() | |
| getDigestAlgo | back to summary |
|---|---|
| public String getDigestAlgo() | |
| getDigester | back to summary |
|---|---|
| pack-priv synchronized MessageDigest getDigester() | |
| getGrantees | back to summary |
|---|---|
| public Collection | |
| getRight | back to summary |
|---|---|
| public static int getRight(String token) Translate a string representation or token(s) into its numeric form. | |
| getRightsSQLArray | back to summary |
|---|---|
| public List | |
| getRole | back to summary |
|---|---|
| public Grantee getRole(String name) Returns Grantee for the named Role | |
| getRoleNames | back to summary |
|---|---|
| public Set | |
| getRoles | back to summary |
|---|---|
| public Collection | |
| getSQLArray | back to summary |
|---|---|
| public List | |
| getSystemRole | back to summary |
|---|---|
| public static Grantee getSystemRole() | |
| grant | back to summary |
|---|---|
| public void grant(Session session, OrderedHashSet<String> granteeList, SchemaObject dbObject, Right right, Grantee grantor, boolean withGrantOption) Grants the rights represented by the Right object on dbObject to the Grantee objects in granteeList. | |
| grant | back to summary |
|---|---|
| public void grant(Session session, OrderedHashSet<String> granteeList, SchemaObject[] routines, Right right, Grantee grantor, boolean withGrantOption) | |
| grant | back to summary |
|---|---|
| public void grant(String granteeName, String roleName, Grantee grantor) Grant a role to this Grantee. | |
| grantSystemToPublic | back to summary |
|---|---|
| public void grantSystemToPublic(SchemaObject object, Right right) | |
| isGrantee | back to summary |
|---|---|
| pack-priv boolean isGrantee(String name) Returns true if named Grantee object exists. This will return true for reserved Grantees SYSTEM_AUTHORIZATION_NAME, ADMIN_ROLE_NAME, PUBLIC_USER_NAME. | |
| isImmutable | back to summary |
|---|---|
| public static boolean isImmutable(String name) | |
| isReserved | back to summary |
|---|---|
| public static boolean isReserved(String name) | |
| isRole | back to summary |
|---|---|
| public boolean isRole(String name) | |
| removeDbObject | back to summary |
|---|---|
| public void removeDbObject(HsqlNameManager. Removes all rights mappings for the database object identified by the name argument from all Grantee objects in the database. | |
| removeDbObjects | back to summary |
|---|---|
| public void removeDbObjects(OrderedHashSet<HsqlNameManager. | |
| removeEmptyRole | back to summary |
|---|---|
| pack-priv void removeEmptyRole(Grantee role) Removes a role without any privileges from all grantees | |
| removeGrantee | back to summary |
|---|---|
| public boolean removeGrantee(String name) | |
| removeNewUser | back to summary |
|---|---|
| public void removeNewUser(HsqlNameManager. Only used for a recently added user with no dependencies | |
| revoke | back to summary |
|---|---|
| public void revoke(String granteeName, String roleName, Grantee grantor) Revoke a role from a Grantee | |
| revoke | back to summary |
|---|---|
| public void revoke(OrderedHashSet<String> granteeList, SchemaObject dbObject, Right rights, Grantee grantor, boolean grantOption, boolean cascade) Revokes the rights represented by the Right object on dbObject from the Grantee objects in granteeList.
| |
| revoke | back to summary |
|---|---|
| public void revoke(OrderedHashSet<String> granteeList, SchemaObject[] routines, Right rights, Grantee grantor, boolean grantOption, boolean cascade) | |
| setDigestAlgo | back to summary |
|---|---|
| public void setDigestAlgo(String algo) | |
| updateAllRights | back to summary |
|---|---|
| pack-priv void updateAllRights(Grantee role) First updates all ROLE Grantee objects. Then updates all USER Grantee Objects. | |
| validRightString | back to summary |
|---|---|
| public static boolean validRightString(String rightString) | |