org.sonatype.aether.repository.Authentication.eq()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(124)

本文整理了Java中org.sonatype.aether.repository.Authentication.eq()方法的一些代码示例,展示了Authentication.eq()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Authentication.eq()方法的具体详情如下:
包路径:org.sonatype.aether.repository.Authentication
类名称:Authentication
方法名:eq

Authentication.eq介绍

暂无

代码示例

代码示例来源:origin: sonatype/sonatype-aether

@Override
public boolean equals( Object obj )
{
  if ( this == obj )
  {
    return true;
  }
  if ( obj == null || !getClass().equals( obj.getClass() ) )
  {
    return false;
  }
  Authentication that = (Authentication) obj;
  return eq( username, that.username ) && Arrays.equals( password, that.password )
    && eq( privateKeyFile, that.privateKeyFile ) && Arrays.equals( passphrase, passphrase );
}

代码示例来源:origin: org.sonatype.aether/org.motechproject.aether-api

@Override
public boolean equals( Object obj )
{
  if ( this == obj )
  {
    return true;
  }
  if ( obj == null || !getClass().equals( obj.getClass() ) )
  {
    return false;
  }
  Authentication that = (Authentication) obj;
  return eq( username, that.username ) && Arrays.equals( password, that.password )
    && eq( privateKeyFile, that.privateKeyFile ) && Arrays.equals( passphrase, passphrase );
}

代码示例来源:origin: org.sonatype.aether/aether-api

@Override
public boolean equals( Object obj )
{
  if ( this == obj )
  {
    return true;
  }
  if ( obj == null || !getClass().equals( obj.getClass() ) )
  {
    return false;
  }
  Authentication that = (Authentication) obj;
  return eq( username, that.username ) && Arrays.equals( password, that.password )
    && eq( privateKeyFile, that.privateKeyFile ) && Arrays.equals( passphrase, passphrase );
}

代码示例来源:origin: org.sonatype.aether/org.motechproject.aether-api

/**
 * Sets the path to the private key file to use for authentication.
 * 
 * @param privateKeyFile The path to the private key file, may be {@code null}.
 * @return The new authentication, never {@code null}.
 */
public Authentication setPrivateKeyFile( String privateKeyFile )
{
  if ( eq( this.privateKeyFile, privateKeyFile ) )
  {
    return this;
  }
  return new Authentication( username, privateKeyFile, password, passphrase );
}

代码示例来源:origin: org.sonatype.aether/org.motechproject.aether-api

/**
 * Sets the username to use for authentication.
 * 
 * @param username The username, may be {@code null}.
 * @return The new authentication, never {@code null}.
 */
public Authentication setUsername( String username )
{
  if ( eq( this.username, username ) )
  {
    return this;
  }
  return new Authentication( username, privateKeyFile, password, passphrase );
}

代码示例来源:origin: org.sonatype.aether/aether-api

/**
 * Sets the username to use for authentication.
 * 
 * @param username The username, may be {@code null}.
 * @return The new authentication, never {@code null}.
 */
public Authentication setUsername( String username )
{
  if ( eq( this.username, username ) )
  {
    return this;
  }
  return new Authentication( username, privateKeyFile, password, passphrase );
}

代码示例来源:origin: sonatype/sonatype-aether

/**
 * Sets the path to the private key file to use for authentication.
 * 
 * @param privateKeyFile The path to the private key file, may be {@code null}.
 * @return The new authentication, never {@code null}.
 */
public Authentication setPrivateKeyFile( String privateKeyFile )
{
  if ( eq( this.privateKeyFile, privateKeyFile ) )
  {
    return this;
  }
  return new Authentication( username, privateKeyFile, password, passphrase );
}

代码示例来源:origin: org.sonatype.aether/aether-api

/**
 * Sets the path to the private key file to use for authentication.
 * 
 * @param privateKeyFile The path to the private key file, may be {@code null}.
 * @return The new authentication, never {@code null}.
 */
public Authentication setPrivateKeyFile( String privateKeyFile )
{
  if ( eq( this.privateKeyFile, privateKeyFile ) )
  {
    return this;
  }
  return new Authentication( username, privateKeyFile, password, passphrase );
}

代码示例来源:origin: sonatype/sonatype-aether

/**
 * Sets the username to use for authentication.
 * 
 * @param username The username, may be {@code null}.
 * @return The new authentication, never {@code null}.
 */
public Authentication setUsername( String username )
{
  if ( eq( this.username, username ) )
  {
    return this;
  }
  return new Authentication( username, privateKeyFile, password, passphrase );
}

相关文章