@Nullable
    @VisibleForTesting
    String getToken() {
      if (token != null) {
        return token;
      }
      return accessToken;
    }
Returns {@link #token} if not null, or {@link #accessToken}.
jib-core/src/main/java/com/google/cloud/tools/jib/registry/RegistryAuthenticator.java