Class DesignerGatewayConnection
java.lang.Object
com.inductiveautomation.ignition.client.gateway_interface.AbstractGatewayConnection
com.inductiveautomation.ignition.designer.DesignerGatewayConnection
- All Implemented Interfaces:
GatewayConnection
,GatewayConstants
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.client.gateway_interface.AbstractGatewayConnection
AbstractGatewayConnection.LoginContext, AbstractGatewayConnection.WebSocketEndpoint
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.client.gateway_interface.GatewayConnection
GatewayConnection.Rpc
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.common.gateway.GatewayConstants
GatewayConstants.ClientAuthChallengeDeserializer
-
Field Summary
Fields inherited from class com.inductiveautomation.ignition.client.gateway_interface.AbstractGatewayConnection
CONNECT_FAIL, CONNECT_SUCCESS, CONNECTING, context, INDEPENDENT, LOG, LOGGER_STATUS_LOOKUP, readWriteLock, REDUNDANT_BACKUP, REDUNDANT_MASTER, STATUS_CONNECT_FAIL, STATUS_CONNECT_INACTIVE, STATUS_CONNECT_UNKNOWN, STATUS_CONNECT_WARNING, STATUS_CONNECTED, STATUS_CONNECTED_INCOMPATIBLE, STATUS_CONNECTING
Fields inherited from interface com.inductiveautomation.ignition.client.gateway_interface.GatewayConnection
CONNECTED, CONNECTION_MODE, CONNECTION_UP, GATEWAY_ADDRESS, GATEWAY_NODE_ROLE, GATEWAY_TIME_ZONE, PROJECT_NAME, ROLES, SESSION_VALID, USERNAME, ZONES
Fields inherited from interface com.inductiveautomation.ignition.common.gateway.GatewayConstants
BUILD_NUMBER, CONNECT_TIMEOUT, ERRNO_BROWSE_ERROR, ERRNO_COMM_ERROR, ERRNO_CONNECTION_MODE, ERRNO_DBCONNECTION_SQL, ERRNO_INTERNAL, ERRNO_INVALIDARGS, ERRNO_INVOCATION_EXCEPTION, ERRNO_LICENSE_RESTRICTED, ERRNO_LOGIN_CANCELLED, ERRNO_LOGIN_FAILED, ERRNO_LOGIN_FAILED_LICENSING, ERRNO_NO_SESSION, ERRNO_NON_ACTIVE_NODE, ERRNO_NON_MASTER_NODE, ERRNO_NOT_AUTHORIZED, ERRNO_OK, ERRNO_PARSE, ERRNO_PASSWORD_EXPIRED, ERRNO_SQL, ERRNO_TRIAL_EXPIRED, ERRNO_VERSION_INCOMPATIBILITY, ERROR_MESSAGE_TYPE, FUNCTION_NAME, GSON, LOCALE_LIST, MODE_DISCONNECTED, MODE_FULL, MODE_READ_ONLY, MODULE_ID, MTYPE_PUBLIC_PING, OPC_BROWSE_TIMEOUT, PACKAGE_ID, PROJECT_NAME, REMOTE_HOST, SCOPE_HEADER, SESSION_ID_HEADER, SOCKET_TIMEOUT, TIMEZONE_ID, WARNING_MESSAGE_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LoginResult
authChallengeLogin
(GatewayInterface gatewayInterface, AuthChallenge challenge, @Nullable String projectName) Get the project name bound to this connection.protected int
getScope()
protected HandshakeExchange
handshake
(GatewayInterface gatewayInterface) protected LoginResult
idpLoginFinish
(GatewayInterface gatewayInterface, @Nullable String projectName) protected @Nullable URI
idpLoginStart
(GatewayInterface gatewayInterface, String projectName) protected void
logout
(GatewayInterface gatewayInterface) protected void
protected void
void
setDesigner
(IgnitionDesigner newDesigner) protected LoginResult
tokenLogin
(GatewayInterface gatewayInterface, String encodedAuthToken, @Nullable String projectName) Methods inherited from class com.inductiveautomation.ignition.client.gateway_interface.AbstractGatewayConnection
addConnectionStatusListener, addPropertyChangeListener, addPropertyChangeListener, addPushNotificationListener, addPushNotificationListeners, authChallengeLogin, connect, disconnect, firePushNotification, getAllAddresses, getAuthChallenge, getConnectionMode, getConnectTimeout, getEdgeProjectName, getGatewayAddress, getGatewayInterface, getGatewayNodeRole, getGatewayTimeZone, getGatewayWebURL, getHttpConcurrency, getOpcBrowseTimeout, getProjectName, getRoles, getScheme, getSecurityZones, getSocketTimeout, getUsername, idpLoginFinish, idpLoginStart, isConnected, isConnectionRelated, isConnectionUp, isPlatformLicensed, isSessionValid, logout, onConnect, operateOnPropertyChangeSupport, removeConnectionStatusListener, removePropertyChangeListener, removePropertyChangeListener, removePushNotificationListener, removePushNotificationListeners, setConnectionMode, setConnectTimeout, setHttpConcurrency, setOpcBrowseTimeout, setSocketTimeout, triggerConnectionStatusListeners, updateLocale
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.client.gateway_interface.GatewayConnection
addPushNotificationListener
-
Constructor Details
-
DesignerGatewayConnection
-
-
Method Details
-
getScope
protected int getScope()- Specified by:
getScope
in classAbstractGatewayConnection
-
getProjectNameInternal
Description copied from class:AbstractGatewayConnection
Get the project name bound to this connection. Any time we need to log into the Gateway, we need to pass the project name bound to this connection. This method exposes the project name in a scope-dependent way assuming the read or write lock is already held by the caller.- Specified by:
getProjectNameInternal
in classAbstractGatewayConnection
- Returns:
- the project name bound to this connection
-
authChallengeLogin
protected LoginResult authChallengeLogin(GatewayInterface gatewayInterface, AuthChallenge challenge, @Nullable @Nullable String projectName) throws GatewayException - Specified by:
authChallengeLogin
in classAbstractGatewayConnection
- Throws:
GatewayException
-
tokenLogin
protected LoginResult tokenLogin(GatewayInterface gatewayInterface, String encodedAuthToken, @Nullable @Nullable String projectName) throws GatewayException - Specified by:
tokenLogin
in classAbstractGatewayConnection
- Throws:
GatewayException
-
idpLoginStart
@Nullable protected @Nullable URI idpLoginStart(GatewayInterface gatewayInterface, String projectName) throws GatewayException - Specified by:
idpLoginStart
in classAbstractGatewayConnection
- Throws:
GatewayException
-
logout
- Specified by:
logout
in classAbstractGatewayConnection
-
idpLoginFinish
protected LoginResult idpLoginFinish(GatewayInterface gatewayInterface, @Nullable @Nullable String projectName) throws GatewayException - Specified by:
idpLoginFinish
in classAbstractGatewayConnection
- Throws:
GatewayException
-
handshake
- Specified by:
handshake
in classAbstractGatewayConnection
-
getAuthenticationStrategy
- Throws:
Exception
-
onUnrecoverableIdpAuthSession
protected void onUnrecoverableIdpAuthSession()- Specified by:
onUnrecoverableIdpAuthSession
in classAbstractGatewayConnection
-
onVersionMismatch
protected void onVersionMismatch()- Specified by:
onVersionMismatch
in classAbstractGatewayConnection
-
setDesigner
-