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

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


    }

    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


        }
        if (violatedPermission instanceof NamedApplicationRole) {
            NamedApplicationRole namedRole = (NamedApplicationRole) violatedPermission;
            permissionInfo = "Role " + namedRole.getRoleName();
        }
        return new BasicAuthorizationViolation(permissionInfo, getExceptionPointInfo(invocationContext));
    }
View Full Code Here

TOP

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

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.