Index

C D G O R S V 
All Classes and Interfaces|All Packages|Constant Field Values

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.autoconfigure - package com.styra.opa.springboot.autoconfigure
 
ConstantContextDataProvider - Class in com.styra.opa.springboot
This helper class allows creating a ContextDataProvider which always returns the same constant value.
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
 
ContextDataProvider - Interface in com.styra.opa.springboot
This interface can be used to expose additional information to the OPA policy via the context field.

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
 

G

getContext() - Method in class com.styra.opa.springboot.OPAResponse
 
getContextData(Supplier<Authentication>, RequestAuthorizationContext) - Method in class com.styra.opa.springboot.ConstantContextDataProvider
 
getContextData(Supplier<Authentication>, RequestAuthorizationContext) - Method in interface com.styra.opa.springboot.ContextDataProvider
 
getData() - Method in class com.styra.opa.springboot.OPAResponseContext
 
getDecision() - Method in class com.styra.opa.springboot.OPAResponse
 
getId() - Method in class com.styra.opa.springboot.OPAResponseContext
 
getReasonAdmin() - Method in class com.styra.opa.springboot.OPAResponseContext
 
getReasonForDecision(String) - Method in class com.styra.opa.springboot.OPAResponse
Wraps OPAResponseContext.getReasonForDecision().
getReasonForDecision(String) - Method in class com.styra.opa.springboot.OPAResponseContext
This method selects an appropriate reason to use for creating Spring authorization decisions.
getReasonKey() - Method in class com.styra.opa.springboot.OPAAuthorizationManager
 
getReasonUser() - Method in class com.styra.opa.springboot.OPAResponseContext
 

O

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 a Spring AuthorizationManager which wraps the OPA Java SDK (https://github.com/StyraInc/opa-java).
OPAAuthorizationManager() - Constructor for class com.styra.opa.springboot.OPAAuthorizationManager
The authorization manager will internally instantiate an OPAClient instance with default settings.
OPAAuthorizationManager(OPAClient) - Constructor for class com.styra.opa.springboot.OPAAuthorizationManager
The authorization manager will be instantiated with the provided OPA client.
OPAAuthorizationManager(OPAClient, ContextDataProvider) - Constructor for class com.styra.opa.springboot.OPAAuthorizationManager
The authorization manager will be instantiated with a caller-supplied client, requests will be sent to the default path, and the caller provided ContextDataProvider will be used to populate OPA input at input.context.data.
OPAAuthorizationManager(OPAClient, String) - Constructor for class com.styra.opa.springboot.OPAAuthorizationManager
The authorization manager will be instantiated with a caller-supplied client, and all OPA requests will be sent to the specified path.
OPAAuthorizationManager(OPAClient, String, ContextDataProvider) - Constructor for class com.styra.opa.springboot.OPAAuthorizationManager
The authorization manager will be instantiated with a caller-supplied client and path, and the ContextDataProvider will be used to populate the OPA input at input.context.data.
OPAAuthorizationManager(String) - Constructor for class com.styra.opa.springboot.OPAAuthorizationManager
The authorization manager will internally instantiate an OPA client.
OPAAuthorizationManager(String, ContextDataProvider) - Constructor for class com.styra.opa.springboot.OPAAuthorizationManager
The authorization manager will instantiate an OPA client internally, but use a caller-supplied path, and ContextDataProvider.
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().
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.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 Spring Boot SDK policy under the context key.
OPAResponseContext() - Constructor for class com.styra.opa.springboot.OPAResponseContext
 

R

Request() - Constructor for class com.styra.opa.springboot.autoconfigure.OPAProperties.Request
 
Resource() - Constructor for class com.styra.opa.springboot.autoconfigure.OPAProperties.Request.Resource
 
Response() - Constructor for class com.styra.opa.springboot.autoconfigure.OPAProperties.Response
 

S

setContext(OPAResponseContext) - Method in class com.styra.opa.springboot.OPAResponse
 
setData(Map<String, Object>) - Method in class com.styra.opa.springboot.OPAResponseContext
The extra 'data' field allows for the OPA policy to pass back arbitrary structured data in addition to the expected reason information.
setDecision(boolean) - Method in class com.styra.opa.springboot.OPAResponse
 
setId(String) - Method in class com.styra.opa.springboot.OPAResponseContext
 
setReasonAdmin(Map<String, String>) - Method in class com.styra.opa.springboot.OPAResponseContext
 
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 object.
setReasonUser(Map<String, String>) - Method in class com.styra.opa.springboot.OPAResponseContext
 
Subject() - Constructor for class com.styra.opa.springboot.autoconfigure.OPAProperties.Request.Subject
 

V

verify(Supplier<Authentication>, RequestAuthorizationContext) - Method in class com.styra.opa.springboot.OPAAuthorizationManager
 
C D G O R S V 
All Classes and Interfaces|All Packages|Constant Field Values