Class EntryCfg


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class EntryCfg
    extends java.lang.Object
    Configuration for app entry.
    • Field Detail

      • SERIALIZED_NAME_FACTORS_REQUIRED

        public static final java.lang.String SERIALIZED_NAME_FACTORS_REQUIRED
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_FACTORS_OPTIONAL

        public static final java.lang.String SERIALIZED_NAME_FACTORS_OPTIONAL
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_REQUIRES_ENTRY

        public static final java.lang.String SERIALIZED_NAME_REQUIRES_ENTRY
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_ACCESS_TOKEN

        public static final java.lang.String SERIALIZED_NAME_ACCESS_TOKEN
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_TTL

        public static final java.lang.String SERIALIZED_NAME_TTL
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_EDIT_ACCOUNT

        public static final java.lang.String SERIALIZED_NAME_EDIT_ACCOUNT
        See Also:
        Constant Field Values
      • openapiFields

        public static java.util.HashSet<java.lang.String> openapiFields
      • openapiRequiredFields

        public static java.util.HashSet<java.lang.String> openapiRequiredFields
    • Constructor Detail

      • EntryCfg

        public EntryCfg()
    • Method Detail

      • factorsRequired

        public EntryCfg factorsRequired​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> factorsRequired)
      • putFactorsRequiredItem

        public EntryCfg putFactorsRequiredItem​(java.lang.String key,
                                               java.util.List<java.lang.String> factorsRequiredItem)
      • getFactorsRequired

        @Nullable
        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getFactorsRequired()
        Specifies factors that always required to be authenticated. Usually it's main auth method (e.g. password) + social login (e.g. facebook) + reserve auth option in case of lost/forgotten main auth credentials (e.g. secret questions or email auth). These factors are always required even when user hasn't enabled them explicitly.
        Returns:
        factorsRequired
      • setFactorsRequired

        public void setFactorsRequired​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> factorsRequired)
      • factorsOptional

        public EntryCfg factorsOptional​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> factorsOptional)
      • putFactorsOptionalItem

        public EntryCfg putFactorsOptionalItem​(java.lang.String key,
                                               java.util.List<java.lang.String> factorsOptionalItem)
      • getFactorsOptional

        @Nullable
        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getFactorsOptional()
        This factors can be skipped if user hasn't enabled them. Used for optional 2FA. E.g. If user added mobile phone -> use it for 2FA otherwise skip 2FA.
        Returns:
        factorsOptional
      • setFactorsOptional

        public void setFactorsOptional​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> factorsOptional)
      • requiresEntry

        public EntryCfg requiresEntry​(java.util.List<java.lang.String> requiresEntry)
      • addRequiresEntryItem

        public EntryCfg addRequiresEntryItem​(java.lang.String requiresEntryItem)
      • getRequiresEntry

        @Nullable
        public java.util.List<java.lang.String> getRequiresEntry()
        Require user to be already signed in by one of the listed entries. Usually it used for action confirmation, e.g. \"payment\" that requires confirmation by sms, requires user to be already signed in (e.g. with entry \"app\".
        Returns:
        requiresEntry
      • setRequiresEntry

        public void setRequiresEntry​(java.util.List<java.lang.String> requiresEntry)
      • getAccessToken

        @Nullable
        public EntryCfgAccessToken getAccessToken()
        Get accessToken
        Returns:
        accessToken
      • ttl

        public EntryCfg ttl​(java.lang.String ttl)
      • getTtl

        @Nullable
        public java.lang.String getTtl()
        Max lifetime of session.
        Returns:
        ttl
      • setTtl

        public void setTtl​(java.lang.String ttl)
      • editAccount

        public EntryCfg editAccount​(java.lang.Boolean editAccount)
      • getEditAccount

        @Nullable
        public java.lang.Boolean getEditAccount()
        Is this session allowed to add/remove new auth, enable/disable factors, etc.?
        Returns:
        editAccount
      • setEditAccount

        public void setEditAccount​(java.lang.Boolean editAccount)
      • putAdditionalProperty

        public EntryCfg putAdditionalProperty​(java.lang.String key,
                                              java.lang.Object value)
        Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
        Return the additional (undeclared) property.
      • getAdditionalProperty

        public java.lang.Object getAdditionalProperty​(java.lang.String key)
        Return the additional (undeclared) property with the specified name.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws java.io.IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        java.io.IOException - if the JSON Object is invalid with respect to EntryCfg
      • fromJson

        public static EntryCfg fromJson​(java.lang.String jsonString)
                                 throws java.io.IOException
        Create an instance of EntryCfg given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of EntryCfg
        Throws:
        java.io.IOException - if the JSON string is invalid with respect to EntryCfg
      • toJson

        public java.lang.String toJson()
        Convert an instance of EntryCfg to an JSON string
        Returns:
        JSON string