Package org.forgerock.android.auth
Class Account.AccountBuilder
- java.lang.Object
-
- org.forgerock.android.auth.Account.AccountBuilder
-
- Enclosing class:
- Account
public static class Account.AccountBuilder extends java.lang.ObjectBuilder class responsible for producing Accounts.
-
-
Constructor Summary
Constructors Constructor Description AccountBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Accountbuild()Produces the Account object that was being constructed.Account.AccountBuildersetAccountName(java.lang.String accountName)Sets the name of the account.Account.AccountBuildersetBackgroundColor(java.lang.String color)Sets the background color for the IDP that issued this account.Account.AccountBuildersetDisplayAccountName(java.lang.String accountName)Sets the alternative name of the account.Account.AccountBuildersetDisplayIssuer(java.lang.String issuer)Sets the alternative name of the IDP that issued this account.Account.AccountBuildersetImageURL(java.lang.String imageURL)Sets the imageURL for the IDP that issued this account.Account.AccountBuildersetIssuer(java.lang.String issuer)Sets the name of the IDP that issued this account.Account.AccountBuildersetTimeAdded(java.util.Calendar timeCreated)Sets the Date and Time this Account was stored.
-
-
-
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.
-
-