public class LoginCredentials extends Credentials
Modifier and Type | Class and Description |
---|---|
static class |
LoginCredentials.Builder |
credential, identity
Modifier and Type | Method and Description |
---|---|
static LoginCredentials.Builder |
builder() |
static LoginCredentials.Builder |
builder(Credentials creds) |
static LoginCredentials |
fromCredentials(Credentials creds) |
com.google.common.base.Optional<String> |
getOptionalPassword() |
com.google.common.base.Optional<String> |
getOptionalPrivateKey() |
String |
getPassword()
Deprecated.
since 1.8; instead use
getOptionalPassword() |
String |
getPrivateKey()
Deprecated.
since 1.8; instead use
getOptionalPrivateKey() |
String |
getUser() |
boolean |
hasUnencryptedPrivateKey() |
boolean |
shouldAuthenticateSudo()
secures access to root requires a password.
|
LoginCredentials.Builder |
toBuilder() |
String |
toString() |
equals, hashCode
public static LoginCredentials fromCredentials(Credentials creds)
public static LoginCredentials.Builder builder(Credentials creds)
public static LoginCredentials.Builder builder()
public String getUser()
@Nullable @Deprecated public String getPassword()
getOptionalPassword()
public com.google.common.base.Optional<String> getOptionalPassword()
@Nullable @Deprecated public String getPrivateKey()
getOptionalPrivateKey()
public boolean hasUnencryptedPrivateKey()
public com.google.common.base.Optional<String> getOptionalPrivateKey()
public boolean shouldAuthenticateSudo()
echo 'password' |sudo -S command
public LoginCredentials.Builder toBuilder()
toBuilder
in class Credentials
public String toString()
toString
in class Credentials
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.