Class LoginCredentialsPanel

All Implemented Interfaces:
ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class LoginCredentialsPanel extends JPanel implements ItemListener
A panel for obtaining a user's credentials. The panel prompts for an Access Key and an Secret Key, and optionally for a Friendly name for an account.
Author:
James Murty, Nikolas Coukouma
See Also:
  • Constructor Details

  • Method Details

    • itemStateChanged

      public void itemStateChanged(ItemEvent e)
      Specified by:
      itemStateChanged in interface ItemListener
    • getAccessKey

      public String getAccessKey()
      Returns:
      the Access Key provided by the user.
    • getSecretKey

      public String getSecretKey()
      Returns:
      the Secret Key provided by the user.
    • getUsingDevPay

      public boolean getUsingDevPay()
      Returns:
      whether or not DevPay authentication should be used
    • getAWSUserToken

      public String getAWSUserToken()
      Returns:
      the user token provided by the user.
    • getAWSProductToken

      public String getAWSProductToken()
      Returns:
      the product token provided by the user.
    • getFriendlyName

      public String getFriendlyName()
      Returns:
      the Friendly Name (nickname) provided by the user, or an empty string if the user was not prompted to provide one (the askForFriendlyName option was false).
    • checkForInputErrors

      public String[] checkForInputErrors()
      Verifies that the user has provided the correct inputs, and returns a list of error messages if not.
      Returns:
      an empty array if there a no input errors, otherwise the array will contain a list of error messages.