final SecurityContext securityContext = getSecurityContext();
final String methodName = request.getMethodName();
if (securityContext != null && methodName != null) {
final String objectType = request.getDistributedObjectType();
final String objectName = request.getDistributedObjectName();
securityContext.interceptBefore(credentials, objectType, objectName, methodName, request.getParameters());
}
}
private void interceptAfter(Credentials credentials, ClientRequest request) {
final SecurityContext securityContext = getSecurityContext();