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() |
String |
getPrivateKey() |
String |
getUser() |
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 public com.google.common.base.Optional<String> getOptionalPassword()
@Nullable public String getPrivateKey()
@Nullable 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-2013 jclouds. All Rights Reserved.