Class SecureChannel
- java.lang.Object
-
- org.apache.plc4x.java.opcua.context.SecureChannel
-
public class SecureChannel extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static PatternINET_ADDRESS_PATTERNstatic ScheduledExecutorServiceKEEP_ALIVE_EXECUTORstatic PascalByteStringNULL_BYTE_STRINGstatic PascalStringNULL_STRINGstatic PatternURI_PATTERN
-
Constructor Summary
Constructors Constructor Description SecureChannel(Conversation conversation, RequestTransactionManager tm, OpcuaDriverContext driverContext, OpcuaConfiguration configuration, PlcAuthentication authentication)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static X509CertificategetX509Certificate(byte[] certificate)CompletableFuture<ActivateSessionResponse>onConnect()CompletableFuture<CreateSessionResponse>onConnectCreateSessionRequest(OpenSecureChannelResponse response)CompletableFuture<OpenSecureChannelResponse>onConnectOpenSecureChannel(SecurityTokenRequestType securityTokenRequestType)voidonDisconnect()CompletableFuture<EndpointDescription>onDiscover()CompletableFuture<EndpointDescription>onDiscoverGetEndpointsRequest(OpenSecureChannelResponse openSecureChannelResponse)
-
-
-
Field Detail
-
NULL_STRING
public static final PascalString NULL_STRING
-
NULL_BYTE_STRING
public static final PascalByteString NULL_BYTE_STRING
-
INET_ADDRESS_PATTERN
public static final Pattern INET_ADDRESS_PATTERN
-
URI_PATTERN
public static final Pattern URI_PATTERN
-
KEEP_ALIVE_EXECUTOR
public static final ScheduledExecutorService KEEP_ALIVE_EXECUTOR
-
-
Constructor Detail
-
SecureChannel
public SecureChannel(Conversation conversation, RequestTransactionManager tm, OpcuaDriverContext driverContext, OpcuaConfiguration configuration, PlcAuthentication authentication)
-
-
Method Detail
-
onConnect
public CompletableFuture<ActivateSessionResponse> onConnect()
-
onConnectOpenSecureChannel
public CompletableFuture<OpenSecureChannelResponse> onConnectOpenSecureChannel(SecurityTokenRequestType securityTokenRequestType)
-
onConnectCreateSessionRequest
public CompletableFuture<CreateSessionResponse> onConnectCreateSessionRequest(OpenSecureChannelResponse response)
-
onDisconnect
public void onDisconnect()
-
onDiscover
public CompletableFuture<EndpointDescription> onDiscover()
-
onDiscoverGetEndpointsRequest
public CompletableFuture<EndpointDescription> onDiscoverGetEndpointsRequest(OpenSecureChannelResponse openSecureChannelResponse)
-
getX509Certificate
public static X509Certificate getX509Certificate(byte[] certificate)
-
-