本文整理了Java中org.sonatype.aether.repository.Authentication.toChars()
方法的一些代码示例,展示了Authentication.toChars()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Authentication.toChars()
方法的具体详情如下:
包路径:org.sonatype.aether.repository.Authentication
类名称: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 ) );
}
内容来源于网络,如有侵权,请联系作者删除!