public final class Credential extends Object
Constructor and Description |
---|
Credential(String username,
String password) |
Modifier and Type | Method and Description |
---|---|
static Credential |
createCredential(String url,
String username,
String password,
String settingsServerId,
org.apache.maven.settings.Settings settings,
org.sonatype.plexus.components.sec.dispatcher.SecDispatcher secDispatcher,
org.apache.maven.plugin.logging.Log log)
Load username password from settings if user has not set them in JVM properties
|
String |
getPassword() |
String |
getUsername() |
void |
setPassword(String password) |
void |
setUsername(String username) |
public String getUsername()
public String getPassword()
public void setUsername(String username)
public void setPassword(String password)
public static Credential createCredential(String url, String username, String password, String settingsServerId, org.apache.maven.settings.Settings settings, org.sonatype.plexus.components.sec.dispatcher.SecDispatcher secDispatcher, org.apache.maven.plugin.logging.Log log)
url
- not nullorigin : derived from org.apache.maven.scm.plugin.AbstractScmMojo::loadInfosFromSettings()
Copyright © 2010–2017 Neticoa SAS. All rights reserved.