public final class AuthenticationBuilder extends Object
| Constructor and Description | 
|---|
| AuthenticationBuilder()Creates a new authentication builder. | 
| Modifier and Type | Method and Description | 
|---|---|
| AuthenticationBuilder | addCustom(org.eclipse.aether.repository.Authentication authentication)Adds custom authentication data to the authentication. | 
| AuthenticationBuilder | addHostnameVerifier(HostnameVerifier verifier)Adds a hostname verifier for SSL. | 
| AuthenticationBuilder | addNtlm(String workstation,
              String domain)Adds NTLM data to the authentication. | 
| AuthenticationBuilder | addPassword(char[] password)Adds password data to the authentication. | 
| AuthenticationBuilder | addPassword(String password)Adds password data to the authentication. | 
| AuthenticationBuilder | addPrivateKey(String pathname,
                          char[] passphrase)Adds private key data to the authentication. | 
| AuthenticationBuilder | addPrivateKey(String pathname,
                          String passphrase)Adds private key data to the authentication. | 
| AuthenticationBuilder | addSecret(String key,
                  char[] value)Adds sensitive custom string data to the authentication. | 
| AuthenticationBuilder | addSecret(String key,
                  String value)Adds sensitive custom string data to the authentication. | 
| AuthenticationBuilder | addString(String key,
                  String value)Adds custom string data to the authentication. | 
| AuthenticationBuilder | addUsername(String username)Adds username data to the authentication. | 
| org.eclipse.aether.repository.Authentication | build()Builds a new authentication object from the current data of this builder. | 
public AuthenticationBuilder()
public org.eclipse.aether.repository.Authentication build()
null if no authentication data was supplied to the builder.public AuthenticationBuilder addUsername(String username)
username - The username, may be null.null.public AuthenticationBuilder addPassword(String password)
password - The password, may be null.null.public AuthenticationBuilder addPassword(char[] password)
password - The password, may be null.null.public AuthenticationBuilder addNtlm(String workstation, String domain)
workstation - The NTLM workstation name, may be null.domain - The NTLM domain name, may be null.null.public AuthenticationBuilder addPrivateKey(String pathname, String passphrase)
pathname - The (absolute) path to the private key file, may be null.passphrase - The passphrase protecting the private key, may be null.null.public AuthenticationBuilder addPrivateKey(String pathname, char[] passphrase)
pathname - The (absolute) path to the private key file, may be null.passphrase - The passphrase protecting the private key, may be null.null.public AuthenticationBuilder addHostnameVerifier(HostnameVerifier verifier)
addCustom(Authentication) with a suitable implementation instead.verifier - The hostname verifier, may be null.null.public AuthenticationBuilder addString(String key, String value)
addSecret(String, char[]) instead.key - The key for the authentication data, must not be null.value - The value for the authentication data, may be null.null.public AuthenticationBuilder addSecret(String key, String value)
key - The key for the authentication data, must not be null.value - The value for the authentication data, may be null.null.public AuthenticationBuilder addSecret(String key, char[] value)
key - The key for the authentication data, must not be null.value - The value for the authentication data, may be null.null.public AuthenticationBuilder addCustom(org.eclipse.aether.repository.Authentication authentication)
authentication - The authentication to add, may be null.null.Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.