Class Credentials


  • public final class Credentials
    extends Object
    Credentials for a user on a lab VM.
    • Constructor Detail

      • Credentials

        public Credentials()
    • Method Detail

      • username

        public String username()
        Get the username property: The username to use when signing in to lab VMs.
        Returns:
        the username value.
      • withUsername

        public Credentials withUsername​(String username)
        Set the username property: The username to use when signing in to lab VMs.
        Parameters:
        username - the username value to set.
        Returns:
        the Credentials object itself.
      • password

        public String password()
        Get the password property: The password for the user. This is required for the TemplateVM createOption.
        Returns:
        the password value.
      • withPassword

        public Credentials withPassword​(String password)
        Set the password property: The password for the user. This is required for the TemplateVM createOption.
        Parameters:
        password - the password value to set.
        Returns:
        the Credentials object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.