Index

C G O S V 
All Classes and Interfaces|All Packages

C

check(Supplier<Authentication>, RequestAuthorizationContext) - Method in class com.styra.opa.springboot.OPAAuthorizationManager
 
com.styra.opa.springboot - package com.styra.opa.springboot
 
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
 
ContextDataProvider - Interface in com.styra.opa.springboot
This interface can be used to expose additional information to the OPA policy via the context field.

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 - 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.
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
 

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
 

V

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