/** * Gets the serialized token class from either the configuration or the token file. * * @since 1.5.0 * @deprecated since 1.6.0; Use {@link #getAuthenticationToken(JobContext)} instead. */ @Deprecated protected static String getTokenClass(JobContext job) { return getAuthenticationToken(job).getClass().getName(); }
/** * Gets the serialized token from either the configuration or the token file. * * @since 1.5.0 * @deprecated since 1.6.0; Use {@link #getAuthenticationToken(JobContext)} instead. */ @Deprecated protected static byte[] getToken(JobContext job) { return AuthenticationToken.AuthenticationTokenSerializer.serialize(getAuthenticationToken(job)); }
/** * Gets the serialized token class from either the configuration or the token file. * * @since 1.5.0 * @deprecated since 1.6.0; Use {@link #getAuthenticationToken(JobContext)} instead. */ @Deprecated protected static String getTokenClass(JobContext context) { return getAuthenticationToken(context).getClass().getName(); }
/** * Gets the serialized token from either the configuration or the token file. * * @since 1.5.0 * @deprecated since 1.6.0; Use {@link #getAuthenticationToken(JobContext)} instead. */ @Deprecated protected static byte[] getToken(JobContext context) { return AuthenticationToken.AuthenticationTokenSerializer .serialize(getAuthenticationToken(context)); }
Map<String,Map<KeyExtent,List<Range>>> binOfflineTable(JobContext context, String tableId, List<Range> ranges) throws TableNotFoundException, AccumuloException, AccumuloSecurityException { Instance instance = getInstance(context); Connector conn = instance.getConnector(getPrincipal(context), getAuthenticationToken(context)); return InputConfigurator.binOffline(tableId, ranges, instance, conn); }
AuthenticationToken token = getAuthenticationToken(context); new Credentials(getPrincipal(context), getAuthenticationToken(context)), getClientConfiguration(context)); while (!tl.binRanges(clientContext, ranges, binnedRanges).isEmpty()) {
token = getAuthenticationToken(attempt);