@Test void testCreateSidUser() { Sid sid = SidUtils.createUserSid("username"); assertEquals(new PrincipalSid("username"), sid); }
public static Sid createUserSid(String username) { if (username.equals(SecurityUtils.ANONYMOUS_USERNAME)) { return createAnonymousSid(); } else { return new PrincipalSid(username); } }
SidUtils { public static Sid createUserSid(String username) { if (username.equals(SecurityUtils.ANONYMOUS_USERNAME)) { return createAnonymousSid(); } else { return new PrincipalSid(username); } } }
SidUtils { public static Sid createUserSid(String username) { if (username.equals(SecurityUtils.ANONYMOUS_USERNAME)) { return createAnonymousSid(); } else { return new PrincipalSid(username); } } private  SidUtils(); }
SidUtils { public static Sid createUserSid(String username) { if (username.equals(SecurityUtils.ANONYMOUS_USERNAME)) { return createAnonymousSid(); } else { return new PrincipalSid(username); } } private  SidUtils(); static Sid createSecurityContextSid(); static Sid createUserSid(String username); static Sid createRoleSid(String rolename); static Sid createAuthoritySid(String authority); static String createRoleAuthority(String roleName); static String getRoleName(String authority); static Sid createAnonymousSid(); }
SidUtils { public static Sid createUserSid(String username) { if (username.equals(SecurityUtils.ANONYMOUS_USERNAME)) { return createAnonymousSid(); } else { return new PrincipalSid(username); } } private  SidUtils(); static Sid createSecurityContextSid(); static Sid createUserSid(String username); static Sid createRoleSid(String rolename); static Sid createAuthoritySid(String authority); static String createRoleAuthority(String roleName); static String getRoleName(String authority); static Sid createAnonymousSid(); static final String ROLE_PREFIX; }