Interface WebAuthStrategyContext
public interface WebAuthStrategyContext
Context in which a
WebAuthStrategy
runs-
Method Summary
Modifier and TypeMethodDescriptiondefault Clock
getClock()
default String
getName()
default LongSupplier
A time source; returns a time value representing the number of nanoseconds elapsed since some fixed but arbitrary point in time.default com.inductiveautomation.ignition.common.gson.JsonElement
default WebAuthStrategyConfig
-
Method Details
-
getConfig
IdpAdapterConfig getConfig() -
getName
- Returns:
- the name of the IdP associated with the web auth strategy
-
getWebAuthStrategyConfig
-
getTypedConfig
default com.inductiveautomation.ignition.common.gson.JsonElement getTypedConfig()- Returns:
- the json config from
WebAuthStrategyConfig.getBackupConfig()
if not empty and the current Gateway's redundancy role is a backup, else returnsAbstractTypedConfig.getConfig()
-
getGatewayContext
GatewayContext getGatewayContext()- Returns:
- the
GatewayContext
where the IdP associated with the web auth strategy runs
-
getTicker
A time source; returns a time value representing the number of nanoseconds elapsed since some fixed but arbitrary point in time. Usually equivalent toSystem.nanoTime()
, though it could be set to something else for unit testing purposes.Warning: this interface can only be used to measure elapsed time, not wall time.
-
getClock
- Returns:
- the
Clock
for this context, used to measure wall time. Usually equivalent toClock.systemUTC()
}, though it could be set to something else for unit testing purposes.
-