@Test
  public void testCanAttemptBlobMount_bearer_withNonToken() {
    // non-Docker Registry Bearer Tokens are assumed to allow access to all
    // the JWT example token from jwt.io
    String jwt =
        "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c";
    Authorization authorization = Authorization.fromBearerToken(jwt);
    Assert.assertNotNull(authorization);
    Assert.assertTrue(RegistryClient.canAttemptBlobMount(authorization, "library/openjdk"));
    Assert.assertTrue(RegistryClient.canAttemptBlobMount(authorization, "randomrepo"));
  }
Basic credential should allow access to all.
jib-core/src/test/java/com/google/cloud/tools/jib/registry/DockerRegistryBearerTokenTest.java