}
if (!auth.exists) {
return userNotFoundResponse;
}
if (auth.tokens == null) {
return new AuthorizationResponse(new String[]{}, AuthorizationResponse.RESPONSE_OK);
}
String[] tokens = new String[auth.tokens.size()];
int k = 0;
while (k < tokens.length) {
tokens[k] = (String) auth.tokens.get(k);
k++;
}
return new AuthorizationResponse(tokens, AuthorizationResponse.RESPONSE_OK);
} catch (InterruptedException ex) {
throw new ManifoldCFException(ex.getMessage(), ex, ManifoldCFException.INTERRUPTED);
}
}