Class LoginCredentials

    • Method Detail

      • getUser

        public String getUser()
        Returns:
        the login user
      • getOptionalPassword

        public com.google.common.base.Optional<String> getOptionalPassword()
        Returns:
        the optional password of the user (Optional.absent if none supplied).
      • hasUnencryptedPrivateKey

        public boolean hasUnencryptedPrivateKey()
        Returns:
        true if there is a private key attached that is not encrypted
      • getOptionalPrivateKey

        public com.google.common.base.Optional<String> 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