A C D E F G I O P R S T U V 
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 ThreadLocal instance of Authentication containing information about the currently authenticated actor.
AuthenticationException - Exception in com.datahub.authentication
An Exception thrown when an Authenticator is unable to be resolved an instance of Authentication for 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 Exception thrown when an Authenticator is unable to be resolve an instance of Authentication for 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 Authenticator to perform Authentication.
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 provided AuthenticationRequest to an instance of Authentication, which includes an authenticated Actor within.
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<ResourceSpec>) - 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
 
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.ResourceFieldType
Domains of resource

E

emptyFieldValue() - Static method in class com.datahub.authorization.FieldResolver
 

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
 
getDomain() - Method in class com.datahub.authorization.ResolvedResourceSpec
Fetch the domain for a Resolved Resource Spec
getFieldValues(ResourceFieldType) - Method in class com.datahub.authorization.ResolvedResourceSpec
 
getOwners() - Method in class com.datahub.authorization.ResolvedResourceSpec
Fetch the owners for a resource.
getRequestHeaders() - Method in class com.datahub.authentication.AuthenticationRequest
 
getRequiredPrivileges() - Method in class com.datahub.authorization.ConjunctivePrivilegeGroup
 
getResolverFromFunction(ResourceSpec, Function<ResourceSpec, 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
getType() - Method in class com.datahub.authorization.ResolvedResourceSpec
Fetch the entity-registry type for a resource.

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<ResourceSpec>, DisjunctivePrivilegeGroup) - Static method in class com.datahub.authorization.AuthUtil
 
isAuthorizedForResources(Authorizer, String, List<Optional<ResourceSpec>>, DisjunctivePrivilegeGroup) - Static method in class com.datahub.authorization.AuthUtil
 

O

OWNER - com.datahub.authorization.ResourceFieldType
Owners of resource

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(ResourceSpec) - Method in interface com.datahub.authorization.ResourceSpecResolver
Resolve a ResourceSpec to a resolved resource spec.
ResolvedResourceSpec - Class in com.datahub.authorization
Wrapper around authorization request with field resolvers for lazily fetching the field values for each field type
ResolvedResourceSpec() - Constructor for class com.datahub.authorization.ResolvedResourceSpec
 
RESOURCE_TYPE - com.datahub.authorization.ResourceFieldType
Type of resource (e.g.
RESOURCE_URN - com.datahub.authorization.ResourceFieldType
Urn of resource
ResourceFieldType - Enum in com.datahub.authorization
List of resource field types to fetch for a given resource
ResourceSpec - Class in com.datahub.authorization
Details about a specific resource being acted upon.
ResourceSpec() - Constructor for class com.datahub.authorization.ResourceSpec
 
ResourceSpecResolver - Interface in com.datahub.authorization
A Resource Spec Resolver is responsible for resolving a ResourceSpec to a ResolvedResourceSpec.

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.

U

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.ResourceFieldType
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.ResourceFieldType
Returns an array containing the constants of this enum type, in the order they are declared.
A C D E F G I O P R S T U V 
All Classes All Packages