Package app.kntrl.client.openapi.model
Class EntryCfg
- java.lang.Object
-
- app.kntrl.client.openapi.model.EntryCfg
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class EntryCfg extends java.lang.ObjectConfiguration for app entry.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEntryCfg.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>openapiFieldsstatic java.util.HashSet<java.lang.String>openapiRequiredFieldsstatic java.lang.StringSERIALIZED_NAME_ACCESS_TOKENstatic java.lang.StringSERIALIZED_NAME_EDIT_ACCOUNTstatic java.lang.StringSERIALIZED_NAME_FACTORS_OPTIONALstatic java.lang.StringSERIALIZED_NAME_FACTORS_REQUIREDstatic java.lang.StringSERIALIZED_NAME_REQUIRES_ENTRYstatic java.lang.StringSERIALIZED_NAME_TTL
-
Constructor Summary
Constructors Constructor Description EntryCfg()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EntryCfgaccessToken(EntryCfgAccessToken accessToken)EntryCfgaddRequiresEntryItem(java.lang.String requiresEntryItem)EntryCfgeditAccount(java.lang.Boolean editAccount)booleanequals(java.lang.Object o)EntryCfgfactorsOptional(java.util.Map<java.lang.String,java.util.List<java.lang.String>> factorsOptional)EntryCfgfactorsRequired(java.util.Map<java.lang.String,java.util.List<java.lang.String>> factorsRequired)static EntryCfgfromJson(java.lang.String jsonString)Create an instance of EntryCfg given an JSON stringEntryCfgAccessTokengetAccessToken()Get accessTokenjava.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()Return the additional (undeclared) property.java.lang.ObjectgetAdditionalProperty(java.lang.String key)Return the additional (undeclared) property with the specified name.java.lang.BooleangetEditAccount()Is this session allowed to add/remove new auth, enable/disable factors, etc.?java.util.Map<java.lang.String,java.util.List<java.lang.String>>getFactorsOptional()This factors can be skipped if user hasn't enabled them.java.util.Map<java.lang.String,java.util.List<java.lang.String>>getFactorsRequired()Specifies factors that always required to be authenticated.java.util.List<java.lang.String>getRequiresEntry()Require user to be already signed in by one of the listed entries.java.lang.StringgetTtl()Max lifetime of session.inthashCode()EntryCfgputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.EntryCfgputFactorsOptionalItem(java.lang.String key, java.util.List<java.lang.String> factorsOptionalItem)EntryCfgputFactorsRequiredItem(java.lang.String key, java.util.List<java.lang.String> factorsRequiredItem)EntryCfgrequiresEntry(java.util.List<java.lang.String> requiresEntry)voidsetAccessToken(EntryCfgAccessToken accessToken)voidsetEditAccount(java.lang.Boolean editAccount)voidsetFactorsOptional(java.util.Map<java.lang.String,java.util.List<java.lang.String>> factorsOptional)voidsetFactorsRequired(java.util.Map<java.lang.String,java.util.List<java.lang.String>> factorsRequired)voidsetRequiresEntry(java.util.List<java.lang.String> requiresEntry)voidsetTtl(java.lang.String ttl)java.lang.StringtoJson()Convert an instance of EntryCfg to an JSON stringjava.lang.StringtoString()EntryCfgttl(java.lang.String ttl)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
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
-
-
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)
-
accessToken
public EntryCfg accessToken(EntryCfgAccessToken accessToken)
-
getAccessToken
@Nullable public EntryCfgAccessToken getAccessToken()
Get accessToken- Returns:
- accessToken
-
setAccessToken
public void setAccessToken(EntryCfgAccessToken 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws java.io.IOExceptionValidates 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
-
-