Package be.c4j.ee.security.exception.violation

Examples of be.c4j.ee.security.exception.violation.AuthorizationViolation


    public String getViolationInfo(InvocationContext invocationContext) {
        return getExceptionPointInfo(invocationContext);
    }

    public String getViolationInfo(InvocationContext invocationContext, SecurityViolation securityViolation) {
        AuthorizationViolation violation = defineCustomViolation(invocationContext, securityViolation);
        if (violation == null) {
            violation = new BasicAuthorizationViolation(securityViolation.getReason(), getExceptionPointInfo(invocationContext));
        }
        return violation.toString();
    }
View Full Code Here


        }
        return violation.toString();
    }

    public String getViolationInfo(InvocationContext invocationContext, Permission violatedPermission) {
        AuthorizationViolation violation = defineCustomViolation(invocationContext, violatedPermission);
        if (violation == null) {
            violation = defineOctopusViolation(invocationContext, violatedPermission);
        }
        return violation.toString();
    }
View Full Code Here

TOP

Related Classes of be.c4j.ee.security.exception.violation.AuthorizationViolation

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.