Package org.jclouds.domain
Class LoginCredentials
java.lang.Object
org.jclouds.domain.Credentials
org.jclouds.domain.LoginCredentials
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.jclouds.domain.Credentials
credential, identity -
Method Summary
Modifier and TypeMethodDescriptionstatic LoginCredentials.Builderbuilder()static LoginCredentials.Builderbuilder(Credentials creds) static LoginCredentialsfromCredentials(Credentials creds) com.google.common.base.Optional<String> com.google.common.base.Optional<String> Deprecated.Deprecated.since 1.8; instead usegetOptionalPrivateKey()getUser()booleanbooleansecures access to root requires a password.toString()Methods inherited from class org.jclouds.domain.Credentials
equals, hashCode
-
Method Details
-
fromCredentials
-
builder
-
builder
-
getUser
- Returns:
- the login user
-
getPassword
Deprecated.since 1.8; instead usegetOptionalPassword()- Returns:
- the password of the login user or null
-
getOptionalPassword
- Returns:
- the optional password of the user (Optional.absent if none supplied).
-
getPrivateKey
Deprecated.since 1.8; instead usegetOptionalPrivateKey()- Returns:
- the private ssh key of the user or null
-
hasUnencryptedPrivateKey
public boolean hasUnencryptedPrivateKey()- Returns:
- true if there is a private key attached that is not encrypted
-
getOptionalPrivateKey
- Returns:
- the optional private ssh key of the user (Optional.absent if none supplied).
-
shouldAuthenticateSudo
public boolean shouldAuthenticateSudo()secures access to root requires a password. This password is required to access either the console or run sudo as root. ex.echo 'password' |sudo -S command- Returns:
- if a password is required to access the root user
-
toBuilder
- Overrides:
toBuilderin classCredentials
-
toString
- Overrides:
toStringin classCredentials
-
getOptionalPassword()