Record Class EnkryptifyConfig
java.lang.Object
java.lang.Record
com.enkryptify.EnkryptifyConfig
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEnkryptifyConfig(String workspace, String project, String environment, EnkryptifyAuthProvider auth, String token, String baseUrl, boolean useTokenExchange, boolean strict, boolean usePersonalValues, boolean cacheEnabled, long cacheTtl, boolean cacheEager) Creates an instance of aEnkryptifyConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionauth()Returns the value of theauthrecord component.baseUrl()Returns the value of thebaseUrlrecord component.static EnkryptifyConfig.BuilderbooleanReturns the value of thecacheEagerrecord component.booleanReturns the value of thecacheEnabledrecord component.longcacheTtl()Returns the value of thecacheTtlrecord component.Returns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.project()Returns the value of theprojectrecord component.booleanstrict()Returns the value of thestrictrecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theusePersonalValuesrecord component.booleanReturns the value of theuseTokenExchangerecord component.Returns the value of theworkspacerecord component.
-
Constructor Details
-
EnkryptifyConfig
public EnkryptifyConfig(String workspace, String project, String environment, EnkryptifyAuthProvider auth, String token, String baseUrl, boolean useTokenExchange, boolean strict, boolean usePersonalValues, boolean cacheEnabled, long cacheTtl, boolean cacheEager) Creates an instance of aEnkryptifyConfigrecord class.- Parameters:
workspace- the value for theworkspacerecord componentproject- the value for theprojectrecord componentenvironment- the value for theenvironmentrecord componentauth- the value for theauthrecord componenttoken- the value for thetokenrecord componentbaseUrl- the value for thebaseUrlrecord componentuseTokenExchange- the value for theuseTokenExchangerecord componentstrict- the value for thestrictrecord componentusePersonalValues- the value for theusePersonalValuesrecord componentcacheEnabled- the value for thecacheEnabledrecord componentcacheTtl- the value for thecacheTtlrecord componentcacheEager- the value for thecacheEagerrecord component
-
-
Method Details
-
builder
public static EnkryptifyConfig.Builder builder(String workspace, String project, String environment) -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
workspace
Returns the value of theworkspacerecord component.- Returns:
- the value of the
workspacerecord component
-
project
Returns the value of theprojectrecord component.- Returns:
- the value of the
projectrecord component
-
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-
auth
Returns the value of theauthrecord component.- Returns:
- the value of the
authrecord component
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
baseUrl
Returns the value of thebaseUrlrecord component.- Returns:
- the value of the
baseUrlrecord component
-
useTokenExchange
public boolean useTokenExchange()Returns the value of theuseTokenExchangerecord component.- Returns:
- the value of the
useTokenExchangerecord component
-
strict
public boolean strict()Returns the value of thestrictrecord component.- Returns:
- the value of the
strictrecord component
-
usePersonalValues
public boolean usePersonalValues()Returns the value of theusePersonalValuesrecord component.- Returns:
- the value of the
usePersonalValuesrecord component
-
cacheEnabled
public boolean cacheEnabled()Returns the value of thecacheEnabledrecord component.- Returns:
- the value of the
cacheEnabledrecord component
-
cacheTtl
public long cacheTtl()Returns the value of thecacheTtlrecord component.- Returns:
- the value of the
cacheTtlrecord component
-
cacheEager
public boolean cacheEager()Returns the value of thecacheEagerrecord component.- Returns:
- the value of the
cacheEagerrecord component
-