Class Account.AccountBuilder

  • Enclosing class:
    Account

    public static class Account.AccountBuilder
    extends java.lang.Object
    Builder class responsible for producing Accounts.
    • Constructor Detail

      • AccountBuilder

        public AccountBuilder()
    • Method Detail

      • setIssuer

        public Account.AccountBuilder setIssuer​(java.lang.String issuer)
        Sets the name of the IDP that issued this account.
        Parameters:
        issuer - The IDP name.
      • setDisplayIssuer

        public Account.AccountBuilder setDisplayIssuer​(java.lang.String issuer)
        Sets the alternative name of the IDP that issued this account.
        Parameters:
        issuer - The IDP name.
      • setAccountName

        public Account.AccountBuilder setAccountName​(java.lang.String accountName)
        Sets the name of the account.
        Parameters:
        accountName - The account name.
      • setDisplayAccountName

        public Account.AccountBuilder setDisplayAccountName​(java.lang.String accountName)
        Sets the alternative name of the account.
        Parameters:
        accountName - The account name.
      • setImageURL

        public Account.AccountBuilder setImageURL​(java.lang.String imageURL)
        Sets the imageURL for the IDP that issued this account.
        Parameters:
        imageURL - A string that represents the image URI.
      • setBackgroundColor

        public Account.AccountBuilder setBackgroundColor​(java.lang.String color)
        Sets the background color for the IDP that issued this account.
        Parameters:
        color - A hex string including a prepending # symbol, representing the color (e.g. #aabbcc).
      • setTimeAdded

        public Account.AccountBuilder setTimeAdded​(java.util.Calendar timeCreated)
        Sets the Date and Time this Account was stored.
        Parameters:
        timeCreated - when this account was stored.
      • build

        protected Account build()
        Produces the Account object that was being constructed.
        Returns:
        The account.