Class PerspectiveAuthTokenManager
java.lang.Object
com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
com.inductiveautomation.ignition.gateway.auth.token.AuthTokenManager<RecordType,BuilderType,com.inductiveautomation.ignition.gateway.auth.token.AuthTokenRecord.ChangeEvent.Context.Redundant<RecordType>>
com.inductiveautomation.ignition.gateway.auth.token.RedundantAuthTokenManager<com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord,com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord.Builder>
com.inductiveautomation.perspective.gateway.auth.token.PerspectiveAuthTokenManager
- All Implemented Interfaces:
Lifecycle
public class PerspectiveAuthTokenManager
extends com.inductiveautomation.ignition.gateway.auth.token.RedundantAuthTokenManager<com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord,com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord.Builder>
A
RedundantAuthTokenManager which manages ProjectAuthTokenRecords bound to
Perspective offline mode sessions-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classARedundantAuthTokenManager.Builderwhich provides a fluent-style API for incrementally building the required pieces to create newPerspectiveAuthTokenManagerinstances.Nested classes/interfaces inherited from class com.inductiveautomation.ignition.gateway.auth.token.AuthTokenManager
com.inductiveautomation.ignition.gateway.auth.token.AuthTokenManager.Config, com.inductiveautomation.ignition.gateway.auth.token.AuthTokenManager.Context, com.inductiveautomation.ignition.gateway.auth.token.AuthTokenManager.TimeoutSettings -
Constructor Summary
ConstructorsConstructorDescriptionPerspectiveAuthTokenManager(com.inductiveautomation.ignition.gateway.auth.token.AuthTokenManager.Context context, com.inductiveautomation.ignition.gateway.auth.token.AuthTokenManager.Config config, com.inductiveautomation.ignition.gateway.auth.token.AuthTokenRecordStore<com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord> authTokenRecordStore, boolean restore) Create a new instance ofPerspectiveAuthTokenManager -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord.Builderbuilder(com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord authTokenRecord) protected voidcustomizeDigest(DigestBuilder digestBuilder, com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord authTokenRecord) protected com.inductiveautomation.ignition.gateway.auth.token.AuthTokenManager.TimeoutSettingsgetTimeoutSettings(com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord authTokenRecord) protected StringMethods inherited from class com.inductiveautomation.ignition.gateway.auth.token.RedundantAuthTokenManager
onShutdown, onStartupMethods inherited from class com.inductiveautomation.ignition.gateway.auth.token.AuthTokenManager
add, addChangeEventListener, get, get, getAndTouch, getContext, getRecordIds, remove, removeChangeEventListener, setup, touchMethods inherited from class com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
isRunning, shutdown, startup
-
Constructor Details
-
PerspectiveAuthTokenManager
public PerspectiveAuthTokenManager(com.inductiveautomation.ignition.gateway.auth.token.AuthTokenManager.Context context, com.inductiveautomation.ignition.gateway.auth.token.AuthTokenManager.Config config, com.inductiveautomation.ignition.gateway.auth.token.AuthTokenRecordStore<com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord> authTokenRecordStore, boolean restore) Create a new instance ofPerspectiveAuthTokenManager- Parameters:
context- theAuthTokenManager.Context. must not be null.config- theAuthTokenManager.Config. must not be null.authTokenRecordStore- theAuthTokenRecordStore. must not be null.restore- true if the Gateway is starting up from a restore of a GWBK- Throws:
NullPointerException- if any of the provided arguments are null
-
-
Method Details
-
getTypeMetricName
- Specified by:
getTypeMetricNamein classcom.inductiveautomation.ignition.gateway.auth.token.AuthTokenManager<com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord,com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord.Builder, com.inductiveautomation.ignition.gateway.auth.token.AuthTokenRecord.ChangeEvent.Context.Redundant<com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord>>
-
builder
protected com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord.Builder builder(com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord authTokenRecord) - Specified by:
builderin classcom.inductiveautomation.ignition.gateway.auth.token.AuthTokenManager<com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord,com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord.Builder, com.inductiveautomation.ignition.gateway.auth.token.AuthTokenRecord.ChangeEvent.Context.Redundant<com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord>>
-
getTimeoutSettings
protected com.inductiveautomation.ignition.gateway.auth.token.AuthTokenManager.TimeoutSettings getTimeoutSettings(com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord authTokenRecord) - Specified by:
getTimeoutSettingsin classcom.inductiveautomation.ignition.gateway.auth.token.AuthTokenManager<com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord,com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord.Builder, com.inductiveautomation.ignition.gateway.auth.token.AuthTokenRecord.ChangeEvent.Context.Redundant<com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord>>
-
customizeDigest
protected void customizeDigest(DigestBuilder digestBuilder, com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord authTokenRecord) - Overrides:
customizeDigestin classcom.inductiveautomation.ignition.gateway.auth.token.RedundantAuthTokenManager<com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord,com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord.Builder>
-
builder
- Returns:
- a new instance of
PerspectiveAuthTokenManager.Builder. never null.
-