Index
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
ContextDataProviderand 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
actionMap. - customize(Authentication, RequestAuthorizationContext, Map<String, Object>) - Method in interface com.styra.opa.springboot.input.OPAInputContextCustomizer
 - 
Customizes
contextMap. - customize(Authentication, RequestAuthorizationContext, Map<String, Object>) - Method in interface com.styra.opa.springboot.input.OPAInputResourceCustomizer
 - 
Customizes
resourceMap. - customize(Authentication, RequestAuthorizationContext, Map<String, Object>) - Method in interface com.styra.opa.springboot.input.OPAInputSubjectCustomizer
 - 
Customizes
subjectMap. 
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
 - 
Wraps
getReasonForDecision(String). - 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
AuthorizationDecisionwhich conveysOPAResponse. - 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
OPAAuthorizationEventPublisherto 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
 - OPAAuthorizationManager - Class in com.styra.opa.springboot
 - 
This class implements
AuthorizationManagerwhich 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-configurationfor 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
OPAClientbean usingOPAProperties#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
OPAInputValidatorto 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
inputproperties 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
OPAPathSelectorbean usingOPAProperties#getPath(). - OPAPathSelector - Interface in com.styra.opa.springboot
 - 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
contextkey. - 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
inputMap. - verify(Supplier<Authentication>, RequestAuthorizationContext) - Method in class com.styra.opa.springboot.OPAAuthorizationManager
 
All Classes and Interfaces|All Packages|Constant Field Values