@Test void testGetAuthorities() { ImmutableList<SimpleGrantedAuthority> expectedAuthorities = ImmutableList.of( new SimpleGrantedAuthority("ROLE_SYSTEM"), new SimpleGrantedAuthority("ROLE_ACL_TAKE_OWNERSHIP"), new SimpleGrantedAuthority("ROLE_ACL_MODIFY_AUDITING"), new SimpleGrantedAuthority("ROLE_ACL_GENERAL_CHANGES")); assertEquals(expectedAuthorities, getInstance().getAuthorities()); }
public static SystemSecurityToken getInstance() { return INSTANCE; }
SystemSecurityToken extends AbstractAuthenticationToken { public static SystemSecurityToken getInstance() { return INSTANCE; } }
SystemSecurityToken extends AbstractAuthenticationToken { public static SystemSecurityToken getInstance() { return INSTANCE; } private  SystemSecurityToken(); }
SystemSecurityToken extends AbstractAuthenticationToken { public static SystemSecurityToken getInstance() { return INSTANCE; } private  SystemSecurityToken(); static SystemSecurityToken getInstance(); @Override Object getCredentials(); @Override Object getPrincipal(); @Override boolean isAuthenticated(); }
SystemSecurityToken extends AbstractAuthenticationToken { public static SystemSecurityToken getInstance() { return INSTANCE; } private  SystemSecurityToken(); static SystemSecurityToken getInstance(); @Override Object getCredentials(); @Override Object getPrincipal(); @Override boolean isAuthenticated();  }