Package io.trino.spi.security
Class Identity.Builder
java.lang.Object
io.trino.spi.security.Identity.Builder
- Enclosing class:
- Identity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withAdditionalExtraCredentials(Map<String, String> extraCredentials) withAdditionalGroups(Set<String> groups) withAdditionalRoles(Map<String, SelectedRole> roles) Deprecated.Use withAdditionalConnectorRoleswithConnectorRole(String catalog, SelectedRole role) withConnectorRoles(Map<String, SelectedRole> roles) withEnabledRoles(Set<String> enabledRoles) withExtraCredentials(Map<String, String> extraCredentials) withGroups(Set<String> groups) voidwithOnDestroy(Runnable onDestroy) withPrincipal(Principal principal) withPrincipal(Optional<Principal> principal) withRole(String catalog, SelectedRole role) Deprecated.Use withConnectorRolewithRoles(Map<String, SelectedRole> roles) Deprecated.Use withConnectorRoles
-
Constructor Details
-
Builder
-
-
Method Details
-
withUser
-
withPrincipal
-
withPrincipal
-
withEnabledRoles
-
withRole
Deprecated.Use withConnectorRole -
withRoles
Deprecated.Use withConnectorRoles -
withAdditionalRoles
Deprecated.Use withAdditionalConnectorRoles -
withConnectorRole
-
withConnectorRoles
-
withAdditionalConnectorRoles
-
withExtraCredentials
-
withAdditionalExtraCredentials
-
withOnDestroy
-
withGroups
-
withAdditionalGroups
-
build
-