//The special user SUCKER_USER is used for creating internal connections that suck messages between nodes
//It has automatic read/write access to all destinations
return (checkType.equals(CheckType.READ) || checkType.equals(CheckType.WRITE));
}
Principal principal = user == null ? null : new SimplePrincipal(user);
boolean hasRole = realmMapping.doesUserHaveRole(principal, rolePrincipals);
if (trace) { log.trace("user " + user + (hasRole ? " is " : " is NOT ") + "authorized"); }