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

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

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

Authentication.toChars介绍

暂无

代码示例

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

/**
 * Creates a new authentication with the specified properties
 * 
 * @param username The username, may be {@code null}.
 * @param password The password, may be {@code null}.
 * @param privateKeyFile The path to the private key file, may be {@code null}.
 * @param passphrase The passphrase for the private key file, may be {@code null}.
 */
public Authentication( String username, String password, String privateKeyFile, String passphrase )
{
  this( username, privateKeyFile, toChars( password ), toChars( passphrase ) );
}

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

/**
 * Creates a new authentication with the specified properties
 * 
 * @param username The username, may be {@code null}.
 * @param password The password, may be {@code null}.
 * @param privateKeyFile The path to the private key file, may be {@code null}.
 * @param passphrase The passphrase for the private key file, may be {@code null}.
 */
public Authentication( String username, String password, String privateKeyFile, String passphrase )
{
  this( username, privateKeyFile, toChars( password ), toChars( passphrase ) );
}

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

/**
 * Creates a basic username+password authentication.
 * 
 * @param username The username, may be {@code null}.
 * @param password The password, may be {@code null}.
 */
public Authentication( String username, String password )
{
  this( username, (String) null, toChars( password ), null );
}

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

/**
 * Creates a basic username+password authentication.
 * 
 * @param username The username, may be {@code null}.
 * @param password The password, may be {@code null}.
 */
public Authentication( String username, String password )
{
  this( username, (String) null, toChars( password ), null );
}

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

/**
 * Creates a basic username+password authentication.
 * 
 * @param username The username, may be {@code null}.
 * @param password The password, may be {@code null}.
 */
public Authentication( String username, String password )
{
  this( username, (String) null, toChars( password ), null );
}

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

/**
 * Creates a new authentication with the specified properties
 * 
 * @param username The username, may be {@code null}.
 * @param password The password, may be {@code null}.
 * @param privateKeyFile The path to the private key file, may be {@code null}.
 * @param passphrase The passphrase for the private key file, may be {@code null}.
 */
public Authentication( String username, String password, String privateKeyFile, String passphrase )
{
  this( username, privateKeyFile, toChars( password ), toChars( passphrase ) );
}

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

/**
 * Sets the password to use for authentication.
 * 
 * @param password The password, may be {@code null}.
 * @return The new authentication, never {@code null}.
 */
public Authentication setPassword( String password )
{
  return setPasswordInternal( toChars( password ) );
}

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

/**
 * Sets the passphrase for the private key file.
 * 
 * @param passphrase The passphrase for the private key file, may be {@code null}.
 * @return The new authentication, never {@code null}.
 */
public Authentication setPassphrase( String passphrase )
{
  return setPassphraseInternal( toChars( passphrase ) );
}

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

/**
 * Sets the passphrase for the private key file.
 * 
 * @param passphrase The passphrase for the private key file, may be {@code null}.
 * @return The new authentication, never {@code null}.
 */
public Authentication setPassphrase( String passphrase )
{
  return setPassphraseInternal( toChars( passphrase ) );
}

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

/**
 * Sets the password to use for authentication.
 * 
 * @param password The password, may be {@code null}.
 * @return The new authentication, never {@code null}.
 */
public Authentication setPassword( String password )
{
  return setPasswordInternal( toChars( password ) );
}

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

/**
 * Sets the passphrase for the private key file.
 * 
 * @param passphrase The passphrase for the private key file, may be {@code null}.
 * @return The new authentication, never {@code null}.
 */
public Authentication setPassphrase( String passphrase )
{
  return setPassphraseInternal( toChars( passphrase ) );
}

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

/**
 * Sets the password to use for authentication.
 * 
 * @param password The password, may be {@code null}.
 * @return The new authentication, never {@code null}.
 */
public Authentication setPassword( String password )
{
  return setPasswordInternal( toChars( password ) );
}

相关文章