Package app.kntrl.client.openapi.model
Class IpAuthCfg
- java.lang.Object
-
- app.kntrl.client.openapi.model.IpAuthCfg
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class IpAuthCfg extends java.lang.ObjectIpAuthCfg
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIpAuthCfg.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_BURN_QUOTAstatic java.lang.StringSERIALIZED_NAME_HISTORY_SIZEstatic java.lang.StringSERIALIZED_NAME_IP_BYTES_TO_IGNOREstatic java.lang.StringSERIALIZED_NAME_RATE_LIMITERstatic java.lang.StringSERIALIZED_NAME_REQUIRES_AUTHstatic java.lang.StringSERIALIZED_NAME_SKIP_ON_FAIL
-
Constructor Summary
Constructors Constructor Description IpAuthCfg()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IpAuthCfgaddRequiresAuthItem(java.util.List<java.lang.String> requiresAuthItem)IpAuthCfgburnQuota(java.lang.Double burnQuota)booleanequals(java.lang.Object o)static IpAuthCfgfromJson(java.lang.String jsonString)Create an instance of IpAuthCfg given an JSON stringjava.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.DoublegetBurnQuota()Every auth execution will burn this amount of quota.java.lang.IntegergetHistorySize()History of IP addresses user used to sign-in.java.lang.IntegergetIpBytesToIgnore()This allows to drop last bytes of IP.java.lang.StringgetRateLimiter()Apply rate limiter for this auth.java.util.List<java.util.List<java.lang.String>>getRequiresAuth()If this is not null, app forbids to add this auth until listed auth enabled.java.lang.BooleangetSkipOnFail()When this is set to true app will attempt next auth in case of error on current.inthashCode()IpAuthCfghistorySize(java.lang.Integer historySize)IpAuthCfgipBytesToIgnore(java.lang.Integer ipBytesToIgnore)IpAuthCfgputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.IpAuthCfgrateLimiter(java.lang.String rateLimiter)IpAuthCfgrequiresAuth(java.util.List<java.util.List<java.lang.String>> requiresAuth)voidsetBurnQuota(java.lang.Double burnQuota)voidsetHistorySize(java.lang.Integer historySize)voidsetIpBytesToIgnore(java.lang.Integer ipBytesToIgnore)voidsetRateLimiter(java.lang.String rateLimiter)voidsetRequiresAuth(java.util.List<java.util.List<java.lang.String>> requiresAuth)voidsetSkipOnFail(java.lang.Boolean skipOnFail)IpAuthCfgskipOnFail(java.lang.Boolean skipOnFail)java.lang.StringtoJson()Convert an instance of IpAuthCfg to an JSON stringjava.lang.StringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_REQUIRES_AUTH
public static final java.lang.String SERIALIZED_NAME_REQUIRES_AUTH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SKIP_ON_FAIL
public static final java.lang.String SERIALIZED_NAME_SKIP_ON_FAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RATE_LIMITER
public static final java.lang.String SERIALIZED_NAME_RATE_LIMITER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BURN_QUOTA
public static final java.lang.String SERIALIZED_NAME_BURN_QUOTA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IP_BYTES_TO_IGNORE
public static final java.lang.String SERIALIZED_NAME_IP_BYTES_TO_IGNORE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HISTORY_SIZE
public static final java.lang.String SERIALIZED_NAME_HISTORY_SIZE
- 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
-
requiresAuth
public IpAuthCfg requiresAuth(java.util.List<java.util.List<java.lang.String>> requiresAuth)
-
addRequiresAuthItem
public IpAuthCfg addRequiresAuthItem(java.util.List<java.lang.String> requiresAuthItem)
-
getRequiresAuth
@Nullable public java.util.List<java.util.List<java.lang.String>> getRequiresAuth()
If this is not null, app forbids to add this auth until listed auth enabled. - if this a string -> require specified auth to be enabled before this. - array of strings -> require any of listed auths to be enabled - array of arrays of strings -> works as `[ [ \"auth1\" and \"auth2\" ] or [ \"auth1\" and \"auth2\" ] ]`- Returns:
- requiresAuth
-
setRequiresAuth
public void setRequiresAuth(java.util.List<java.util.List<java.lang.String>> requiresAuth)
-
skipOnFail
public IpAuthCfg skipOnFail(java.lang.Boolean skipOnFail)
-
getSkipOnFail
@Nullable public java.lang.Boolean getSkipOnFail()
When this is set to true app will attempt next auth in case of error on current. It's works good with IP auth. User can provide both IP auth request and SMS auth request. And SMS will be executed only when IP auth is failed. If set to false any error on this auth will stop the whole request execution.- Returns:
- skipOnFail
-
setSkipOnFail
public void setSkipOnFail(java.lang.Boolean skipOnFail)
-
rateLimiter
public IpAuthCfg rateLimiter(java.lang.String rateLimiter)
-
getRateLimiter
@Nullable public java.lang.String getRateLimiter()
Apply rate limiter for this auth.- Returns:
- rateLimiter
-
setRateLimiter
public void setRateLimiter(java.lang.String rateLimiter)
-
burnQuota
public IpAuthCfg burnQuota(java.lang.Double burnQuota)
-
getBurnQuota
@Nullable public java.lang.Double getBurnQuota()
Every auth execution will burn this amount of quota. Takes place only when rate limiter is specified- Returns:
- burnQuota
-
setBurnQuota
public void setBurnQuota(java.lang.Double burnQuota)
-
ipBytesToIgnore
public IpAuthCfg ipBytesToIgnore(java.lang.Integer ipBytesToIgnore)
-
getIpBytesToIgnore
@Nullable public java.lang.Integer getIpBytesToIgnore()
This allows to drop last bytes of IP. So it allows to authenticate factor when ip has rough match, e.g. the same country, same city, or same internet provider.- Returns:
- ipBytesToIgnore
-
setIpBytesToIgnore
public void setIpBytesToIgnore(java.lang.Integer ipBytesToIgnore)
-
historySize
public IpAuthCfg historySize(java.lang.Integer historySize)
-
getHistorySize
@Nullable public java.lang.Integer getHistorySize()
History of IP addresses user used to sign-in. Authenticated when user attempts to sign in with one of stored IPs.- Returns:
- historySize
-
setHistorySize
public void setHistorySize(java.lang.Integer historySize)
-
putAdditionalProperty
public IpAuthCfg 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 IpAuthCfg
-
fromJson
public static IpAuthCfg fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of IpAuthCfg given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of IpAuthCfg
- Throws:
java.io.IOException- if the JSON string is invalid with respect to IpAuthCfg
-
toJson
public java.lang.String toJson()
Convert an instance of IpAuthCfg to an JSON string- Returns:
- JSON string
-
-