Index

A C D E G I O P R S T V 
All Classes and Interfaces|All Packages|Constant Field Values

A

ACTION - Static variable in class com.styra.opa.springboot.input.InputConstants
 
ACTION_HEADERS - Static variable in class com.styra.opa.springboot.input.InputConstants
 
ACTION_NAME - Static variable in class com.styra.opa.springboot.input.InputConstants
 
ACTION_PROTOCOL - Static variable in class com.styra.opa.springboot.input.InputConstants
 
AuthorizationEvent() - Constructor for class com.styra.opa.springboot.autoconfigure.OPAProperties.AuthorizationEvent
 
AuthorizationEventType() - Constructor for class com.styra.opa.springboot.autoconfigure.OPAProperties.AuthorizationEventType
 

C

check(Supplier<Authentication>, RequestAuthorizationContext) - Method in class com.styra.opa.springboot.OPAAuthorizationManager
 
com.styra.opa.springboot - package com.styra.opa.springboot
 
com.styra.opa.springboot.authorization - package com.styra.opa.springboot.authorization
 
com.styra.opa.springboot.autoconfigure - package com.styra.opa.springboot.autoconfigure
 
com.styra.opa.springboot.input - package com.styra.opa.springboot.input
 
ConstantContextDataProvider - Class in com.styra.opa.springboot
This helper class implements ContextDataProvider and always returns the same constant value passed in the constructor.
ConstantContextDataProvider(Object) - Constructor for class com.styra.opa.springboot.ConstantContextDataProvider
 
Context() - Constructor for class com.styra.opa.springboot.autoconfigure.OPAProperties.Request.Context
 
Context() - Constructor for class com.styra.opa.springboot.autoconfigure.OPAProperties.Response.Context
 
CONTEXT - Static variable in class com.styra.opa.springboot.input.InputConstants
 
CONTEXT_DATA - Static variable in class com.styra.opa.springboot.input.InputConstants
 
CONTEXT_HOST - Static variable in class com.styra.opa.springboot.input.InputConstants
 
CONTEXT_IP - Static variable in class com.styra.opa.springboot.input.InputConstants
 
CONTEXT_PORT - Static variable in class com.styra.opa.springboot.input.InputConstants
 
CONTEXT_TYPE - Static variable in class com.styra.opa.springboot.input.InputConstants
 
ContextDataProvider - Interface in com.styra.opa.springboot
This interface can be used to expose additional information to the OPA policy.
customize(Authentication, RequestAuthorizationContext, Map<String, Object>) - Method in interface com.styra.opa.springboot.input.OPAInputActionCustomizer
Customizes action Map.
customize(Authentication, RequestAuthorizationContext, Map<String, Object>) - Method in interface com.styra.opa.springboot.input.OPAInputContextCustomizer
Customizes context Map.
customize(Authentication, RequestAuthorizationContext, Map<String, Object>) - Method in interface com.styra.opa.springboot.input.OPAInputResourceCustomizer
Customizes resource Map.
customize(Authentication, RequestAuthorizationContext, Map<String, Object>) - Method in interface com.styra.opa.springboot.input.OPAInputSubjectCustomizer
Customizes subject Map.

D

DEFAULT_REASON_KEY - Static variable in class com.styra.opa.springboot.autoconfigure.OPAProperties.Response.Context
 
DEFAULT_TYPE - Static variable in class com.styra.opa.springboot.autoconfigure.OPAProperties.Request.Context
 
DEFAULT_TYPE - Static variable in class com.styra.opa.springboot.autoconfigure.OPAProperties.Request.Resource
 
DEFAULT_TYPE - Static variable in class com.styra.opa.springboot.autoconfigure.OPAProperties.Request.Subject
 
DEFAULT_URL - Static variable in class com.styra.opa.springboot.autoconfigure.OPAProperties
 

E

EXCEPTION_MESSAGE_TEMPLATE - Static variable in class com.styra.opa.springboot.input.OPAInputValidator
 

G

getContextData(Supplier<Authentication>, RequestAuthorizationContext) - Method in class com.styra.opa.springboot.ConstantContextDataProvider
 
getContextData(Supplier<Authentication>, RequestAuthorizationContext) - Method in interface com.styra.opa.springboot.ContextDataProvider
 
getDecision() - Method in class com.styra.opa.springboot.OPAResponse
 
getReasonForDecision(String) - Method in class com.styra.opa.springboot.OPAResponse
getReasonForDecision(String) - Method in class com.styra.opa.springboot.OPAResponseContext
This method selects an appropriate reason to use for creating AuthorizationDecisions.

I

InputConstants - Class in com.styra.opa.springboot.input
 

O

OPAAuthorizationDecision - Class in com.styra.opa.springboot.authorization
Extends AuthorizationDecision which conveys OPAResponse.
OPAAuthorizationDecision(boolean, OPAResponse) - Constructor for class com.styra.opa.springboot.authorization.OPAAuthorizationDecision
 
opaAuthorizationEventPublisher(ApplicationEventPublisher, OPAProperties) - Method in class com.styra.opa.springboot.autoconfigure.OPAAutoConfiguration
Create an OPAAuthorizationEventPublisher to publish denied/granted authorization events.
OPAAuthorizationEventPublisher - Class in com.styra.opa.springboot.authorization
Publishes OPA authorization granted/denied events.
OPAAuthorizationEventPublisher(ApplicationEventPublisher, OPAProperties) - Constructor for class com.styra.opa.springboot.authorization.OPAAuthorizationEventPublisher
 
opaAuthorizationManager(OPAClient, OPAProperties) - Method in class com.styra.opa.springboot.autoconfigure.OPAAutoConfiguration
Create an OPAAuthorizationManager bean using OPAClient bean and OPAProperties#getPath().
OPAAuthorizationManager - Class in com.styra.opa.springboot
This class implements AuthorizationManager which wraps the OPA Java SDK.
OPAAuthorizationManager() - Constructor for class com.styra.opa.springboot.OPAAuthorizationManager
 
OPAAuthorizationManager(OPAClient) - Constructor for class com.styra.opa.springboot.OPAAuthorizationManager
 
OPAAuthorizationManager(OPAClient, ContextDataProvider) - Constructor for class com.styra.opa.springboot.OPAAuthorizationManager
 
OPAAuthorizationManager(OPAClient, String) - Constructor for class com.styra.opa.springboot.OPAAuthorizationManager
 
OPAAuthorizationManager(OPAClient, String, ContextDataProvider) - Constructor for class com.styra.opa.springboot.OPAAuthorizationManager
Instantiates an instance to authorizes requests.
OPAAuthorizationManager(String) - Constructor for class com.styra.opa.springboot.OPAAuthorizationManager
 
OPAAuthorizationManager(String, ContextDataProvider) - Constructor for class com.styra.opa.springboot.OPAAuthorizationManager
 
OPAAutoConfiguration - Class in com.styra.opa.springboot.autoconfigure
Auto-configuration for OPA authorization support.
OPAAutoConfiguration() - Constructor for class com.styra.opa.springboot.autoconfigure.OPAAutoConfiguration
 
opaClient(OPAProperties) - Method in class com.styra.opa.springboot.autoconfigure.OPAAutoConfiguration
Create an OPAClient bean using OPAProperties#getUrl().
OPAInputActionCustomizer - Interface in com.styra.opa.springboot.input
By defining a bean which implements this interface, clients could customize OPA input.action.
OPAInputContextCustomizer - Interface in com.styra.opa.springboot.input
By defining a bean which implements this interface, clients could customize OPA input.context.
OPAInputResourceCustomizer - Interface in com.styra.opa.springboot.input
By defining a bean which implements this interface, clients could customize OPA input.resource.
OPAInputSubjectCustomizer - Interface in com.styra.opa.springboot.input
By defining a bean which implements this interface, clients could customize OPA input.subject.
opaInputValidator() - Method in class com.styra.opa.springboot.autoconfigure.OPAAutoConfiguration
Create an OPAInputValidator to validate the OPA input's required fields before sending request to the OPA server.
OPAInputValidator - Class in com.styra.opa.springboot.input
Makes sure that mandatory OPA input properties are available.
OPAInputValidator() - Constructor for class com.styra.opa.springboot.input.OPAInputValidator
 
opaPathSelector(OPAProperties) - Method in class com.styra.opa.springboot.autoconfigure.OPAAutoConfiguration
Create an OPAPathSelector bean using OPAProperties#getPath().
OPAPathSelector - Interface in com.styra.opa.springboot
Selects target OPA path based on Authentication, RequestAuthorizationContext, and input Map.
OPAProperties - Class in com.styra.opa.springboot.autoconfigure
Configuration properties for OPA authorization support.
OPAProperties() - Constructor for class com.styra.opa.springboot.autoconfigure.OPAProperties
 
OPAProperties.AuthorizationEvent - Class in com.styra.opa.springboot.autoconfigure
 
OPAProperties.AuthorizationEventType - Class in com.styra.opa.springboot.autoconfigure
 
OPAProperties.Request - Class in com.styra.opa.springboot.autoconfigure
 
OPAProperties.Request.Context - Class in com.styra.opa.springboot.autoconfigure
 
OPAProperties.Request.Resource - Class in com.styra.opa.springboot.autoconfigure
 
OPAProperties.Request.Subject - Class in com.styra.opa.springboot.autoconfigure
 
OPAProperties.Response - Class in com.styra.opa.springboot.autoconfigure
 
OPAProperties.Response.Context - Class in com.styra.opa.springboot.autoconfigure
 
opaRequest(Supplier<Authentication>, RequestAuthorizationContext) - Method in class com.styra.opa.springboot.OPAAuthorizationManager
This method can be used to directly call OPA without generating an AuthorizationDecision, which can be used to examine the OPA response.
OPAResponse - Class in com.styra.opa.springboot
This class models the data to be returned from an OPA Spring Boot SDK policy.
OPAResponse() - Constructor for class com.styra.opa.springboot.OPAResponse
 
OPAResponseContext - Class in com.styra.opa.springboot
This class models the data to be returned from an OPA policy under the context key.
OPAResponseContext() - Constructor for class com.styra.opa.springboot.OPAResponseContext
 

P

publishAuthorizationEvent(Supplier<Authentication>, T, AuthorizationDecision) - Method in class com.styra.opa.springboot.authorization.OPAAuthorizationEventPublisher
 

R

Request() - Constructor for class com.styra.opa.springboot.autoconfigure.OPAProperties.Request
 
Resource() - Constructor for class com.styra.opa.springboot.autoconfigure.OPAProperties.Request.Resource
 
RESOURCE - Static variable in class com.styra.opa.springboot.input.InputConstants
 
RESOURCE_ID - Static variable in class com.styra.opa.springboot.input.InputConstants
 
RESOURCE_TYPE - Static variable in class com.styra.opa.springboot.input.InputConstants
 
Response() - Constructor for class com.styra.opa.springboot.autoconfigure.OPAProperties.Response
 

S

selectPath(Authentication, RequestAuthorizationContext, Map<String, Object>) - Method in interface com.styra.opa.springboot.OPAPathSelector
 
setOpaProperties(OPAProperties) - Method in class com.styra.opa.springboot.OPAAuthorizationManager
 
setReasonKey(String) - Method in class com.styra.opa.springboot.OPAAuthorizationManager
Changes the "preferred" key where the access decision reason should be searched for in the OPAResponse.
Subject() - Constructor for class com.styra.opa.springboot.autoconfigure.OPAProperties.Request.Subject
 
SUBJECT - Static variable in class com.styra.opa.springboot.input.InputConstants
 
SUBJECT_AUTHORITIES - Static variable in class com.styra.opa.springboot.input.InputConstants
 
SUBJECT_DETAILS - Static variable in class com.styra.opa.springboot.input.InputConstants
 
SUBJECT_ID - Static variable in class com.styra.opa.springboot.input.InputConstants
 
SUBJECT_TYPE - Static variable in class com.styra.opa.springboot.input.InputConstants
 

T

toString() - Method in class com.styra.opa.springboot.authorization.OPAAuthorizationDecision
 

V

validate(Authentication, RequestAuthorizationContext, Map<String, Object>) - Method in class com.styra.opa.springboot.input.OPAInputValidator
Validates input Map.
verify(Supplier<Authentication>, RequestAuthorizationContext) - Method in class com.styra.opa.springboot.OPAAuthorizationManager
 
A C D E G I O P R S T V 
All Classes and Interfaces|All Packages|Constant Field Values