Package org.apache.myfaces.extensions.cdi.core.api.security

Examples of org.apache.myfaces.extensions.cdi.core.api.security.SecurityViolation


        for (Class<?> type : parameterTypes) {
            if (!hasAssignableParameter(invocationContext.getParameters(), type)) {
                missingClasses.add(type);
            }
        }
        SecurityViolation result = null;
        if (!missingClasses.isEmpty()) {
            result = new SecurityViolation() {
                @Override
                public String getReason() {
                    return infoProducer.getWrongMethodSignatureInfo(invocationContext, missingClasses);
                }
            };
View Full Code Here


    @Inject
    protected UserPrincipal userPrincipal;

    protected void checkMethodHasParameterTypes(Set<SecurityViolation> violations, InvocationContext invocationContext, Class<?>... parameterTypes) {
        SecurityViolation violation = methodParameterCheckUtil.checkMethodHasParameterTypes(invocationContext, parameterTypes);
        if (violation != null) {
            violations.add(violation);
        }
    }
View Full Code Here

            violations.add(violation);
        }
    }

    protected boolean verifyMethodHasParameterTypes(InvocationContext invocationContext, Class<?>... parameterTypes) {
        SecurityViolation violation = methodParameterCheckUtil.checkMethodHasParameterTypes(invocationContext, parameterTypes);
        return violation == null;
    }
View Full Code Here

        SecurityViolation violation = methodParameterCheckUtil.checkMethodHasParameterTypes(invocationContext, parameterTypes);
        return violation == null;
    }

    protected boolean hasServletRequestInfo(InvocationContext invocationContext) {
        SecurityViolation violation = methodParameterCheckUtil.checkMethodHasParameterTypes(invocationContext, HttpServletRequest.class);
        return violation == null;
    }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.extensions.cdi.core.api.security.SecurityViolation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.