Skip navigation links
A B C D G I K M R S T 

A

assertValidForPartner(String) - Method in class com.boku.auth.http.server.AuthorizationContext
Convenience method to check the given partnerId against the partner identified in the authorization header, and throw an authorization exception if they don't match.
AuthorizationContext - Class in com.boku.auth.http.server
The authorization context within which the current request is operating.
This is derived from the Authorization header supplied by the client, which you can assume has been pre-verified by the time you get hold of an instance of this class.
AuthorizationContext(AuthorizationHeader) - Constructor for class com.boku.auth.http.server.AuthorizationContext
 
AuthorizationContextProvider - Class in com.boku.auth.http.server
Framework independent class to verify and return the current AuthorizationContext, given that we've been provided a webserver-implementation-specific factory that can provide current request information.
AuthorizationContextProvider(CurrentRequestAuthInfoFactory, HttpMessageSigner) - Constructor for class com.boku.auth.http.server.AuthorizationContextProvider
 
available() - Method in class com.boku.auth.http.server.servletfilter.InputStreamAsServletInputStream
 

B

BokuHttpAuthFilter - Class in com.boku.auth.http.server.servletfilter
Stores information about the request so that it may be accessed by the application using AuthorizationContextProvider.

WARNING: This filter DOES NOT reject requests based on auth information by itself.
BokuHttpAuthFilter(ThreadLocalServletRequestContextHolder, HttpMessageSigner) - Constructor for class com.boku.auth.http.server.servletfilter.BokuHttpAuthFilter
Constructor for users supporting dependency injection.
(Either via manual filter registration, or using a shim such as org.springframework.web.filter.DelegatingFilterProxy)
BokuHttpAuthFilter() - Constructor for class com.boku.auth.http.server.servletfilter.BokuHttpAuthFilter
Servlet-style constructor, uses whatever ServerAuthorizationComponentsFactory.getInstance() returns.
See BokuHttpAuthFilter.init(javax.servlet.FilterConfig) for details on configuration params.
BokuHttpAuthFilterCurrentRequestAuthInfoFactory - Class in com.boku.auth.http.server.servletfilter
Implements CurrentRequestAuthInfoFactory by interacting with thread-local data stored by BokuHttpAuthFilter.
BokuHttpAuthFilterCurrentRequestAuthInfoFactory(ThreadLocalServletRequestContextHolder) - Constructor for class com.boku.auth.http.server.servletfilter.BokuHttpAuthFilterCurrentRequestAuthInfoFactory
 

C

close() - Method in class com.boku.auth.http.server.servletfilter.InputStreamAsServletInputStream
 
com.boku.auth.http.server - package com.boku.auth.http.server
 
com.boku.auth.http.server.factory - package com.boku.auth.http.server.factory
 
com.boku.auth.http.server.servletfilter - package com.boku.auth.http.server.servletfilter
 
com.boku.auth.http.server.spi - package com.boku.auth.http.server.spi
 
CurrentRequestAuthInfo - Class in com.boku.auth.http.server.spi
Represents as-yet UNAUTHENTICATED auth info supplied with a request.

This information is to be provided by a specific HTTP framework implementation such as Servlet, Jersey, etc, by means of implementing the CurrentRequestAuthInfoFactory interface.
CurrentRequestAuthInfo(AuthorizationHeader, CanonicalHttpRequest) - Constructor for class com.boku.auth.http.server.spi.CurrentRequestAuthInfo
 
CurrentRequestAuthInfoFactory - Interface in com.boku.auth.http.server.spi
Implemented in the context of a specific HTTP framework (such as Servlet) to return auth info in a common form so that it can be verified by the core authentication code.

This interface exists mainly just-in-case - practically this should almost always be accomplished via the servlet implementation, and any higher level framework integration (such as Jersey or SpringMVC) can be responsible for simply calling AuthorizationContextProvider.

D

destroy() - Method in class com.boku.auth.http.server.servletfilter.BokuHttpAuthFilter
 
doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class com.boku.auth.http.server.servletfilter.BokuHttpAuthFilter
 

G

get() - Method in class com.boku.auth.http.server.AuthorizationContextProvider
Get the current AuthorizationContext.
The returned context has been verified to ensure that the request itself was correctly signed by the partner-owned key identified in the supplied AuthorizationHeader.
By this point, no verification has been performed as to whether the signing partner is authorized to access any entities referenced within the request body itself.
getAuthorizationContextProvider() - Method in class com.boku.auth.http.server.factory.ServerAuthorizationComponentsFactory
getAuthorizationHeader() - Method in class com.boku.auth.http.server.AuthorizationContext
The original AuthorizationHeader instance supplied with the request.
getAuthorizationHeader() - Method in class com.boku.auth.http.server.spi.CurrentRequestAuthInfo
The parsed Authorization header received with the request.
getBokuHttpAuthFilter() - Method in class com.boku.auth.http.server.factory.ServerAuthorizationComponentsFactory
Get the BokuHttpAuthFilter to be installed in your web application.
getCanonicalRequest() - Method in class com.boku.auth.http.server.spi.CurrentRequestAuthInfo
The canonicalized request.
getCurrentRequestInfo() - Method in class com.boku.auth.http.server.servletfilter.BokuHttpAuthFilterCurrentRequestAuthInfoFactory
 
getCurrentRequestInfo() - Method in interface com.boku.auth.http.server.spi.CurrentRequestAuthInfoFactory
 
getHttpMessageSigner() - Method in class com.boku.auth.http.server.factory.ServerAuthorizationComponentsFactory
getInstance() - Static method in class com.boku.auth.http.server.factory.ServerAuthorizationComponentsFactory
Get the static instance of ServerAuthorizationComponentsFactory, initializing if necessary.
See class-level docs for details.
getThreadLocalServletRequestContextHolder() - Method in class com.boku.auth.http.server.factory.ServerAuthorizationComponentsFactory

I

init(Map<String, String>) - Static method in class com.boku.auth.http.server.factory.ServerAuthorizationComponentsFactory
For static initialization via BokuHttpAuthFilter init-params.
init(FilterConfig) - Method in class com.boku.auth.http.server.servletfilter.BokuHttpAuthFilter
Servlet init method.

Per-instance params: com.boku.auth.http.server.response.signed-headers: comma-separated list of headers to sign if they are present in the response.
InputStreamAsServletInputStream - Class in com.boku.auth.http.server.servletfilter
InputStream delegate, but implements the ServletInputStream interface.
InputStreamAsServletInputStream(InputStream) - Constructor for class com.boku.auth.http.server.servletfilter.InputStreamAsServletInputStream
 
isFinished() - Method in class com.boku.auth.http.server.servletfilter.InputStreamAsServletInputStream
 
isReady() - Method in class com.boku.auth.http.server.servletfilter.InputStreamAsServletInputStream
 

K

KEYPROVIDER_CUSTOM_FACTORY_METHOD_KEY - Static variable in class com.boku.auth.http.server.factory.ServerAuthorizationComponentsFactory
 
KEYPROVIDER_P12_FILE_DEFAULT - Static variable in class com.boku.auth.http.server.factory.ServerAuthorizationComponentsFactory
 
KEYPROVIDER_P12_FILE_KEY - Static variable in class com.boku.auth.http.server.factory.ServerAuthorizationComponentsFactory
 
KEYPROVIDER_P12_PASSWORD_KEY - Static variable in class com.boku.auth.http.server.factory.ServerAuthorizationComponentsFactory
 
KEYPROVIDER_TYPE_CUSTOM - Static variable in class com.boku.auth.http.server.factory.ServerAuthorizationComponentsFactory
 
KEYPROVIDER_TYPE_DEFAULT - Static variable in class com.boku.auth.http.server.factory.ServerAuthorizationComponentsFactory
 
KEYPROVIDER_TYPE_KEY - Static variable in class com.boku.auth.http.server.factory.ServerAuthorizationComponentsFactory
 
KEYPROVIDER_TYPE_PKCS12 - Static variable in class com.boku.auth.http.server.factory.ServerAuthorizationComponentsFactory
 

M

mark(int) - Method in class com.boku.auth.http.server.servletfilter.InputStreamAsServletInputStream
 
markSupported() - Method in class com.boku.auth.http.server.servletfilter.InputStreamAsServletInputStream
 

R

read() - Method in class com.boku.auth.http.server.servletfilter.InputStreamAsServletInputStream
 
read(byte[]) - Method in class com.boku.auth.http.server.servletfilter.InputStreamAsServletInputStream
 
read(byte[], int, int) - Method in class com.boku.auth.http.server.servletfilter.InputStreamAsServletInputStream
 
reset() - Method in class com.boku.auth.http.server.servletfilter.InputStreamAsServletInputStream
 

S

ServerAuthorizationComponentsFactory - Class in com.boku.auth.http.server.factory
Factory for server side auth components.

The server components BokuHttpAuthFilter and AuthorizationContextProvider must share state, and so must be wired up correctly with the same common dependencies.
ServerAuthorizationComponentsFactory(KeyProvider) - Constructor for class com.boku.auth.http.server.factory.ServerAuthorizationComponentsFactory
Wire up server components using the regular BasicStringSignerImpl and your given KeyProvider implementation.
ServerAuthorizationComponentsFactory(StringSigner) - Constructor for class com.boku.auth.http.server.factory.ServerAuthorizationComponentsFactory
Wire up server components using a custom StringSigner implementation.
setReadListener(ReadListener) - Method in class com.boku.auth.http.server.servletfilter.InputStreamAsServletInputStream
 
skip(long) - Method in class com.boku.auth.http.server.servletfilter.InputStreamAsServletInputStream
 

T

ThreadLocalServletRequestContextHolder - Class in com.boku.auth.http.server.servletfilter
Internal implementation class.

BokuHttpAuthFilter sticks information about the request it's currently working on here, so that BokuHttpAuthFilterCurrentRequestAuthInfoFactory can access it.
ThreadLocalServletRequestContextHolder() - Constructor for class com.boku.auth.http.server.servletfilter.ThreadLocalServletRequestContextHolder
 
TIMESTAMP_VALIDITY_PERIOD_SECONDS - Static variable in class com.boku.auth.http.server.AuthorizationContextProvider
 
A B C D G I K M R S T 
Skip navigation links

Copyright © 2020. All rights reserved.