Object credential = null; SecurityIdentity localIdentity = SecurityDomain.forIdentity(connection.getSecurityIdentity()).getCurrentSecurityIdentity(); if (localIdentity != null) { p = new SimplePrincipal(localIdentity.getPrincipal().getName());
Object credential = null; SecurityIdentity localIdentity = SecurityDomain.forIdentity(connection.getSecurityIdentity()).getCurrentSecurityIdentity(); if (localIdentity != null) { p = new SimplePrincipal(localIdentity.getPrincipal().getName());