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 class
ARedundantAuthTokenManager.Builder
which provides a fluent-style API for incrementally building the required pieces to create newPerspectiveAuthTokenManager
instances.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.Builder
builder
(com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord authTokenRecord) protected void
customizeDigest
(DigestBuilder digestBuilder, com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord authTokenRecord) protected com.inductiveautomation.ignition.gateway.auth.token.AuthTokenManager.TimeoutSettings
getTimeoutSettings
(com.inductiveautomation.ignition.gateway.auth.token.ProjectAuthTokenRecord authTokenRecord) protected String
Methods inherited from class com.inductiveautomation.ignition.gateway.auth.token.RedundantAuthTokenManager
onShutdown, onStartup
Methods inherited from class com.inductiveautomation.ignition.gateway.auth.token.AuthTokenManager
add, addChangeEventListener, get, get, getAndTouch, getContext, getRecordIds, remove, removeChangeEventListener, setup, touch
Methods 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:
getTypeMetricName
in 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:
builder
in 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:
getTimeoutSettings
in 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:
customizeDigest
in 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.
-