The user principal.
285286287288289290291292293294295296
{ username}, new String[] { "username"}, "removeUser(java.lang.String)"); if (getAnonymousUser().equals(username)) { throw new SecurityException( SecurityException.ANONYMOUS_USER_PROTECTED.create(username)); } UserPrincipal userPrincipal = new UserPrincipalImpl(username); String fullPath = userPrincipal.getFullPath(); atnProviderProxy.removeUserPrincipal(userPrincipal); // Remove preferences Preferences preferences = Preferences.userRoot().node(fullPath); try {
777879808182838485
} public void testRemoveNonExistantUserPrincipal() throws SecurityException { String localUid = Integer.toString(rand.nextInt()).toString(); UserPrincipal localPrin = new UserPrincipalImpl(localUid); userHandler.removeUserPrincipal(localPrin); }