A C D E F G I O P R S T U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- Actor - Class in com.datahub.authentication
-
Represents a unique DataHub actor (i.e.
- Actor() - Constructor for class com.datahub.authentication.Actor
- ActorType - Enum in com.datahub.authentication
-
A specific type of Actor on DataHub's platform.
- ALLOW - com.datahub.authorization.AuthorizationResult.Type
-
Allow the request - the requested actor is privileged.
- authenticate(AuthenticationRequest) - Method in interface com.datahub.plugins.auth.authentication.Authenticator
-
Authenticates an inbound request given an instance of the
AuthenticationRequest. - Authentication - Class in com.datahub.authentication
-
Class representing an authenticated actor accessing DataHub.
- Authentication(Actor, String) - Constructor for class com.datahub.authentication.Authentication
- Authentication(Actor, String, Map<String, Object>) - Constructor for class com.datahub.authentication.Authentication
- AuthenticationContext - Class in com.datahub.authentication
-
A static wrapper around a
ThreadLocalinstance ofAuthenticationcontaining information about the currently authenticated actor. - AuthenticationException - Exception in com.datahub.authentication
-
An
Exceptionthrown when anAuthenticatoris unable to be resolved an instance ofAuthenticationfor the current request. - AuthenticationException(String) - Constructor for exception com.datahub.authentication.AuthenticationException
- AuthenticationException(String, Throwable) - Constructor for exception com.datahub.authentication.AuthenticationException
- AuthenticationExpiredException - Exception in com.datahub.authentication
-
An
Exceptionthrown when anAuthenticatoris unable to be resolve an instance ofAuthenticationfor the current request. - AuthenticationExpiredException(String) - Constructor for exception com.datahub.authentication.AuthenticationExpiredException
- AuthenticationExpiredException(String, Throwable) - Constructor for exception com.datahub.authentication.AuthenticationExpiredException
- AuthenticationRequest - Class in com.datahub.authentication
-
Request context provided to each
Authenticatorto perform Authentication. - AuthenticationRequest(String, String, Map<String, String>) - Constructor for class com.datahub.authentication.AuthenticationRequest
- AuthenticationRequest(Map<String, String>) - Constructor for class com.datahub.authentication.AuthenticationRequest
- Authenticator - Interface in com.datahub.plugins.auth.authentication
-
An
Authenticator's job is to authenticate an inbound request by resolving the providedAuthenticationRequestto an instance ofAuthentication, which includes an authenticatedActorwithin. - AuthenticatorContext - Class in com.datahub.authentication
-
Context class to provide Authenticator implementations with concrete objects necessary for their correct workings.
- AuthenticatorContext(Map<String, Object>) - Constructor for class com.datahub.authentication.AuthenticatorContext
- AuthorizationRequest - Class in com.datahub.authorization
-
A request to authorize a user for a specific privilege.
- AuthorizationRequest() - Constructor for class com.datahub.authorization.AuthorizationRequest
- AuthorizationResult - Class in com.datahub.authorization
-
A result returned after requesting authorization for a particular privilege.
- AuthorizationResult() - Constructor for class com.datahub.authorization.AuthorizationResult
- AuthorizationResult.Type - Enum in com.datahub.authorization
-
The result type.
- authorize(AuthorizationRequest) - Method in interface com.datahub.plugins.auth.authorization.Authorizer
-
Authorizes an action based on the actor, the resource, and required privileges.
- authorizedActors(String, Optional<EntitySpec>) - Method in interface com.datahub.plugins.auth.authorization.Authorizer
-
Retrieves the current list of actors authorized to for a particular privilege against an optional resource
- AuthorizedActors - Class in com.datahub.authorization
- AuthorizedActors() - Constructor for class com.datahub.authorization.AuthorizedActors
- Authorizer - Interface in com.datahub.plugins.auth.authorization
-
An Authorizer is responsible for determining whether an actor should be granted a specific privilege.
- AuthorizerContext - Class in com.datahub.authorization
-
Context provided to an Authorizer on initialization.
- AuthorizerContext() - Constructor for class com.datahub.authorization.AuthorizerContext
- AuthUtil - Class in com.datahub.authorization
C
- com.datahub.authentication - package com.datahub.authentication
- com.datahub.authorization - package com.datahub.authorization
- com.datahub.plugins - package com.datahub.plugins
- com.datahub.plugins.auth.authentication - package com.datahub.plugins.auth.authentication
- com.datahub.plugins.auth.authorization - package com.datahub.plugins.auth.authorization
- ConjunctivePrivilegeGroup - Class in com.datahub.authorization
-
Represents a group of privileges that must ALL be required to authorize a request.
- ConjunctivePrivilegeGroup(List<String>) - Constructor for class com.datahub.authorization.ConjunctivePrivilegeGroup
D
- data() - Method in class com.datahub.authentication.AuthenticatorContext
- data() - Method in class com.datahub.authorization.AuthorizerContext
- DATA_PLATFORM_INSTANCE - com.datahub.authorization.EntityFieldType
-
Data platform instance of resource
- DENY - com.datahub.authorization.AuthorizationResult.Type
-
Deny the request - the requested actor is not privileged.
- DisjunctivePrivilegeGroup - Class in com.datahub.authorization
-
Represents a group of privilege groups, any of which must be authorized to authorize a request.
- DisjunctivePrivilegeGroup(List<ConjunctivePrivilegeGroup>) - Constructor for class com.datahub.authorization.DisjunctivePrivilegeGroup
- DOMAIN - com.datahub.authorization.EntityFieldType
-
Domains of the entity
E
- emptyFieldValue() - Static method in class com.datahub.authorization.FieldResolver
- EntityFieldType - Enum in com.datahub.authorization
-
List of entity field types to fetch for a given entity
- EntitySpec - Class in com.datahub.authorization
-
Details about the entities involved in the authorization process.
- EntitySpec() - Constructor for class com.datahub.authorization.EntitySpec
- EntitySpecResolver - Interface in com.datahub.authorization
-
An Entity Spec Resolver is responsible for resolving a
EntitySpecto aResolvedEntitySpec.
F
- FieldResolver - Class in com.datahub.authorization
-
Helper class for lazy resolution of fields Input resolveField function that is given as input will only be called when getFieldValuesFuture is called
- FieldResolver() - Constructor for class com.datahub.authorization.FieldResolver
- FieldResolver.FieldValue - Class in com.datahub.authorization
-
Container for storing the field value, in case we need to extend this to have more types of field values
- FieldValue() - Constructor for class com.datahub.authorization.FieldResolver.FieldValue
G
- getActor() - Method in class com.datahub.authentication.Authentication
- getAuthentication() - Static method in class com.datahub.authentication.AuthenticationContext
- getAuthorizedPrivilegeGroups() - Method in class com.datahub.authorization.DisjunctivePrivilegeGroup
- getClaims() - Method in class com.datahub.authentication.Authentication
- getCredentials() - Method in class com.datahub.authentication.Authentication
- getDataPlatformInstance() - Method in class com.datahub.authorization.ResolvedEntitySpec
-
Fetch the platform instance for a Resolved Resource Spec
- getFieldValues(EntityFieldType) - Method in class com.datahub.authorization.ResolvedEntitySpec
- getGroupMembership() - Method in class com.datahub.authorization.ResolvedEntitySpec
-
Fetch the group membership for an entity.
- getOwners() - Method in class com.datahub.authorization.ResolvedEntitySpec
-
Fetch the owners for an entity.
- getRequestHeaders() - Method in class com.datahub.authentication.AuthenticationRequest
- getRequiredPrivileges() - Method in class com.datahub.authorization.ConjunctivePrivilegeGroup
- getResolverFromFunction(EntitySpec, Function<EntitySpec, FieldResolver.FieldValue>) - Static method in class com.datahub.authorization.FieldResolver
-
Helper function that returns FieldResolver given a fetchFieldValue function
- getResolverFromValues(Set<String>) - Static method in class com.datahub.authorization.FieldResolver
-
Helper function that returns FieldResolver for precomputed values
- GROUP_MEMBERSHIP - com.datahub.authorization.EntityFieldType
-
Groups of which the entity (only applies to corpUser) is a member
I
- init(Map<String, Object>, AuthenticatorContext) - Method in interface com.datahub.plugins.auth.authentication.Authenticator
-
Initialize the Authenticator.
- init(Map<String, Object>, AuthorizerContext) - Method in interface com.datahub.plugins.auth.authorization.Authorizer
-
Initialize the Authorizer.
- isAuthorized(Authorizer, String, Optional<EntitySpec>, DisjunctivePrivilegeGroup) - Static method in class com.datahub.authorization.AuthUtil
- isAuthorizedForResources(Authorizer, String, List<Optional<EntitySpec>>, DisjunctivePrivilegeGroup) - Static method in class com.datahub.authorization.AuthUtil
O
- OWNER - com.datahub.authorization.EntityFieldType
-
Owners of the entity
P
- Plugin - Interface in com.datahub.plugins
-
A tag interface for plugin
- PLUGIN_HOME - Static variable in class com.datahub.plugins.PluginConstant
- PluginConstant - Class in com.datahub.plugins
R
- remove() - Static method in class com.datahub.authentication.AuthenticationContext
- resolve(EntitySpec) - Method in interface com.datahub.authorization.EntitySpecResolver
-
Resolve a
EntitySpecto a resolved entity spec. - ResolvedEntitySpec - Class in com.datahub.authorization
-
Wrapper around authorization request with field resolvers for lazily fetching the field values for each field type
- ResolvedEntitySpec() - Constructor for class com.datahub.authorization.ResolvedEntitySpec
- RESOURCE_TYPE - com.datahub.authorization.EntityFieldType
-
Deprecated.
- RESOURCE_URN - com.datahub.authorization.EntityFieldType
-
Deprecated.
S
- setAuthentication(Authentication) - Static method in class com.datahub.authentication.AuthenticationContext
T
- toUrnStr() - Method in class com.datahub.authentication.Actor
- type - Variable in class com.datahub.authorization.AuthorizationResult
-
The decision - whether to allow or deny the request.
- TYPE - com.datahub.authorization.EntityFieldType
-
Type of the entity (e.g.
U
- URN - com.datahub.authorization.EntityFieldType
-
Urn of the entity
- USER - com.datahub.authentication.ActorType
-
A user actor, e.g.
V
- valueOf(String) - Static method in enum com.datahub.authentication.ActorType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.datahub.authorization.AuthorizationResult.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.datahub.authorization.EntityFieldType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.datahub.authentication.ActorType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.datahub.authorization.AuthorizationResult.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.datahub.authorization.EntityFieldType
-
Returns an array containing the constants of this enum type, in the order they are declared.
All Classes All Packages