Package org.pac4j.play.java
Class SecureAction
- java.lang.Object
-
- play.mvc.Results
-
- play.mvc.Action<play.mvc.Result>
-
- org.pac4j.play.java.SecureAction
-
public class SecureAction extends play.mvc.Action<play.mvc.Result>
This filter protects an URL.
- Since:
- 1.0.0
- Author:
- Jerome Leleu, Michael Remond
-
-
Field Summary
Fields Modifier and Type Field Description protected static Method
AUTHORIZERS_METHOD
protected static Method
CLIENTS_METHOD
protected org.slf4j.Logger
logger
protected static Method
MATCHERS_METHOD
protected static Method
MULTI_PROFILE_METHOD
-
Constructor Summary
Constructors Constructor Description SecureAction(org.pac4j.core.config.Config config, PlaySessionStore playSessionStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<play.mvc.Result>
call(PlayWebContext webContext, String clients, String authorizers, String matchers, boolean multiProfile)
CompletionStage<play.mvc.Result>
call(play.mvc.Http.Request req)
protected boolean
getBooleanParam(InvocationHandler invocationHandler, Method method, boolean defaultValue)
org.pac4j.core.engine.SecurityLogic<CompletionStage<play.mvc.Result>,PlayWebContext>
getSecurityLogic()
protected String
getStringParam(InvocationHandler invocationHandler, Method method, String defaultValue)
protected CompletionStage<play.mvc.Result>
internalCall(play.mvc.Http.Request req, PlayWebContext webContext, String clients, String authorizers, String matchers, boolean multiProfile)
void
setSecurityLogic(org.pac4j.core.engine.SecurityLogic<CompletionStage<play.mvc.Result>,PlayWebContext> securityLogic)
-
Methods inherited from class play.mvc.Results
badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, contentDispositionHeader, created, created, created, created, created, created, created, created, created, created, created, created, created, created, created, created, created, created, created, created, created, created, created, created, created, created, created, created, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, found, found, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, movedPermanently, movedPermanently, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, networkAuthenticationRequired, noContent, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notAcceptable, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, paymentRequired, permanentRedirect, permanentRedirect, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, preconditionRequired, redirect, redirect, redirect, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, requestHeaderFieldsTooLarge, seeOther, seeOther, status, status, status, status, status, status, status, status, status, status, status, status, status, status, status, status, status, status, status, status, status, status, status, status, status, status, status, status, status, temporaryRedirect, temporaryRedirect, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, tooManyRequests, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType, unsupportedMediaType
-
-
-
-
Field Detail
-
logger
protected org.slf4j.Logger logger
-
CLIENTS_METHOD
protected static final Method CLIENTS_METHOD
-
AUTHORIZERS_METHOD
protected static final Method AUTHORIZERS_METHOD
-
MATCHERS_METHOD
protected static final Method MATCHERS_METHOD
-
MULTI_PROFILE_METHOD
protected static final Method MULTI_PROFILE_METHOD
-
-
Constructor Detail
-
SecureAction
@Inject public SecureAction(org.pac4j.core.config.Config config, PlaySessionStore playSessionStore)
-
-
Method Detail
-
call
public CompletionStage<play.mvc.Result> call(play.mvc.Http.Request req)
- Specified by:
call
in classplay.mvc.Action<play.mvc.Result>
-
call
public CompletionStage<play.mvc.Result> call(PlayWebContext webContext, String clients, String authorizers, String matchers, boolean multiProfile) throws Throwable
- Throws:
Throwable
-
internalCall
protected CompletionStage<play.mvc.Result> internalCall(play.mvc.Http.Request req, PlayWebContext webContext, String clients, String authorizers, String matchers, boolean multiProfile) throws Throwable
- Throws:
Throwable
-
getStringParam
protected String getStringParam(InvocationHandler invocationHandler, Method method, String defaultValue) throws Throwable
- Throws:
Throwable
-
getBooleanParam
protected boolean getBooleanParam(InvocationHandler invocationHandler, Method method, boolean defaultValue) throws Throwable
- Throws:
Throwable
-
getSecurityLogic
public org.pac4j.core.engine.SecurityLogic<CompletionStage<play.mvc.Result>,PlayWebContext> getSecurityLogic()
-
setSecurityLogic
public void setSecurityLogic(org.pac4j.core.engine.SecurityLogic<CompletionStage<play.mvc.Result>,PlayWebContext> securityLogic)
-
-