@Deprecated(since = "2.0.0") @Test public void testSystemToken() { assertEquals("org.apache.accumulo.server.security.SystemCredentials$SystemToken", SystemToken.class.getName()); assertEquals(SystemCredentials.get(instanceId, siteConfig).getToken().getClass(), SystemToken.class); }
public static SystemCredentials get(String instanceID, SiteConfiguration siteConfig) { String principal = SYSTEM_PRINCIPAL; if (siteConfig.getBoolean(Property.INSTANCE_RPC_SASL_ENABLED)) { principal = SecurityUtil.getServerPrincipal(siteConfig.get(Property.GENERAL_KERBEROS_PRINCIPAL)); } return new SystemCredentials(instanceID, principal, SystemToken.get(instanceID, siteConfig)); }
SystemCredentials extends Credentials { public static SystemCredentials get(String instanceID, SiteConfiguration siteConfig) { String principal = SYSTEM_PRINCIPAL; if (siteConfig.getBoolean(Property.INSTANCE_RPC_SASL_ENABLED)) { principal = SecurityUtil.getServerPrincipal(siteConfig.get(Property.GENERAL_KERBEROS_PRINCIPAL)); } return new SystemCredentials(instanceID, principal, SystemToken.get(instanceID, siteConfig)); } }
SystemCredentials extends Credentials { public static SystemCredentials get(String instanceID, SiteConfiguration siteConfig) { String principal = SYSTEM_PRINCIPAL; if (siteConfig.getBoolean(Property.INSTANCE_RPC_SASL_ENABLED)) { principal = SecurityUtil.getServerPrincipal(siteConfig.get(Property.GENERAL_KERBEROS_PRINCIPAL)); } return new SystemCredentials(instanceID, principal, SystemToken.get(instanceID, siteConfig)); } SystemCredentials(String instanceID, String principal, AuthenticationToken token); }
SystemCredentials extends Credentials { public static SystemCredentials get(String instanceID, SiteConfiguration siteConfig) { String principal = SYSTEM_PRINCIPAL; if (siteConfig.getBoolean(Property.INSTANCE_RPC_SASL_ENABLED)) { principal = SecurityUtil.getServerPrincipal(siteConfig.get(Property.GENERAL_KERBEROS_PRINCIPAL)); } return new SystemCredentials(instanceID, principal, SystemToken.get(instanceID, siteConfig)); } SystemCredentials(String instanceID, String principal, AuthenticationToken token); static SystemCredentials get(String instanceID, SiteConfiguration siteConfig); @Override TCredentials toThrift(String instanceID); }
SystemCredentials extends Credentials { public static SystemCredentials get(String instanceID, SiteConfiguration siteConfig) { String principal = SYSTEM_PRINCIPAL; if (siteConfig.getBoolean(Property.INSTANCE_RPC_SASL_ENABLED)) { principal = SecurityUtil.getServerPrincipal(siteConfig.get(Property.GENERAL_KERBEROS_PRINCIPAL)); } return new SystemCredentials(instanceID, principal, SystemToken.get(instanceID, siteConfig)); } SystemCredentials(String instanceID, String principal, AuthenticationToken token); static SystemCredentials get(String instanceID, SiteConfiguration siteConfig); @Override TCredentials toThrift(String instanceID);  }