code: public static Credentials copy(Credentials credentials) {
          if (credentials == null) {
              return null;
          }
          return new Credentials(credentials.login, credentials.password);
      }
docs: Creates a new copy of authentication pair.
  
  @param credentials original authentication pair (optional).
  @return copied authentication pair (optional).
  
  @since v1.1.0