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();
}