public static Credential from(String username, String password) {
    return new Credential(username, password);
  }
Gets a {@link Credential} configured with a username and password.

@param username the username
@param password the password
@return a new {@link Credential}
jib-core/src/main/java/com/google/cloud/tools/jib/api/Credential.java