Class AuthConfig
java.lang.Object
com.linecorp.centraldogma.server.auth.AuthConfig
An authentication configuration for the Central Dogma server.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAuthConfig
(AuthProviderFactory factory, Set<String> systemAdministrators, boolean caseSensitiveLoginNames, String sessionCacheSpec, long sessionTimeoutMillis, String sessionValidationSchedule, JsonNode properties) Creates a new instance.AuthConfig
(String factoryClassName, Set<String> systemAdministrators, Boolean caseSensitiveLoginNames, String sessionCacheSpec, Long sessionTimeoutMillis, String sessionValidationSchedule, JsonNode properties) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether login names are case-sensitive.factory()
Returns theAuthProviderFactory
.Returns the class name of theAuthProviderFactory
.Returns aFunction
which normalizes a login name based on thecaseSensitiveLoginNames()
property.Returns the additional properties given to theAuthProviderFactory
.<T> T
properties
(Class<T> clazz) Returns the additional properties, converted toT
.Returns the spec of the session cache.long
Returns the timeout of an inactive session in milliseconds.Returns the cron expression that describes how often session validation task should run.Returns the usernames of the users with system administrator rights.toString()
-
Field Details
-
DEFAULT_SESSION_TIMEOUT_MILLIS
public static final long DEFAULT_SESSION_TIMEOUT_MILLISA default session timeout in milliseconds.- See Also:
-
DEFAULT_SESSION_CACHE_SPEC
A default specification for a session cache.- See Also:
-
DEFAULT_SESSION_VALIDATION_SCHEDULE
A default schedule for validating sessions at 0:30, 4:30, 8:30, 12:30, 16:30 and 20:30 for every day.- See Also:
-
-
Constructor Details
-
AuthConfig
public AuthConfig(String factoryClassName, @Nullable Set<String> systemAdministrators, @Nullable Boolean caseSensitiveLoginNames, @Nullable String sessionCacheSpec, @Nullable Long sessionTimeoutMillis, @Nullable String sessionValidationSchedule, @Nullable JsonNode properties) throws Exception Creates a new instance.- Parameters:
factoryClassName
- the fully-qualified class name of theAuthProviderFactory
systemAdministrators
- the login names of the system administratorscaseSensitiveLoginNames
- the flag whether case-sensitive matching is performed when login names are comparedsessionCacheSpec
- the cache specification which determines the capacity and behavior of the cache forSession
of the serversessionTimeoutMillis
- the timeout forSession
s of the serversessionValidationSchedule
- the schedule for validating sessionsproperties
- the additional properties which are used in the factory- Throws:
Exception
-
AuthConfig
public AuthConfig(AuthProviderFactory factory, Set<String> systemAdministrators, boolean caseSensitiveLoginNames, String sessionCacheSpec, long sessionTimeoutMillis, String sessionValidationSchedule, @Nullable JsonNode properties) Creates a new instance.- Parameters:
factory
- theAuthProviderFactory
instancesystemAdministrators
- the login names of the system administratorscaseSensitiveLoginNames
- the flag whether case-sensitive matching is performed when login names are comparedsessionCacheSpec
- the cache specification which determines the capacity and behavior of the cache forSession
of the serversessionTimeoutMillis
- the timeout forSession
s of the serversessionValidationSchedule
- the schedule for validating sessionsproperties
- the additional properties which are used in the factory
-
-
Method Details
-
factory
Returns theAuthProviderFactory
. -
factoryClassName
Returns the class name of theAuthProviderFactory
. -
systemAdministrators
Returns the usernames of the users with system administrator rights. -
caseSensitiveLoginNames
public boolean caseSensitiveLoginNames()Returns whether login names are case-sensitive. -
sessionCacheSpec
Returns the spec of the session cache. -
sessionTimeoutMillis
public long sessionTimeoutMillis()Returns the timeout of an inactive session in milliseconds. -
sessionValidationSchedule
Returns the cron expression that describes how often session validation task should run. -
properties
Returns the additional properties given to theAuthProviderFactory
. -
properties
Returns the additional properties, converted toT
.- Throws:
JsonProcessingException
-
loginNameNormalizer
Returns aFunction
which normalizes a login name based on thecaseSensitiveLoginNames()
property. -
toString
-