Class AuditCertificateEventTypeNode

All Implemented Interfaces:
AuditCertificateEventType, AuditEventType, AuditSecurityEventType, BaseEventType, BaseObjectType, org.eclipse.milo.opcua.sdk.core.nodes.Node, org.eclipse.milo.opcua.sdk.core.nodes.ObjectNode
Direct Known Subclasses:
AuditCertificateDataMismatchEventTypeNode, AuditCertificateExpiredEventTypeNode, AuditCertificateInvalidEventTypeNode, AuditCertificateMismatchEventTypeNode, AuditCertificateRevokedEventTypeNode, AuditCertificateUntrustedEventTypeNode

public class AuditCertificateEventTypeNode extends AuditSecurityEventTypeNode implements AuditCertificateEventType
  • Constructor Details

    • AuditCertificateEventTypeNode

      public AuditCertificateEventTypeNode(OpcUaClient client, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass nodeClass, org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName browseName, org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText displayName, org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText description, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger writeMask, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger userWriteMask, org.eclipse.milo.opcua.stack.core.types.structured.RolePermissionType[] rolePermissions, org.eclipse.milo.opcua.stack.core.types.structured.RolePermissionType[] userRolePermissions, org.eclipse.milo.opcua.stack.core.types.structured.AccessRestrictionType accessRestrictions, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte eventNotifier)
  • Method Details

    • getCertificate

      public org.eclipse.milo.opcua.stack.core.types.builtin.ByteString getCertificate() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: AuditCertificateEventType
      Get the local value of the Certificate Node.

      The returned value is the last seen; it is not read live from the server.

      Specified by:
      getCertificate in interface AuditCertificateEventType
      Returns:
      the local value of the Certificate Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Certificate Node.
    • setCertificate

      public void setCertificate(org.eclipse.milo.opcua.stack.core.types.builtin.ByteString value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: AuditCertificateEventType
      Set the local value of the Certificate Node.

      The value is only updated locally; it is not written to the server.

      Specified by:
      setCertificate in interface AuditCertificateEventType
      Parameters:
      value - the local value to set for the Certificate Node.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Certificate Node.
    • readCertificate

      public org.eclipse.milo.opcua.stack.core.types.builtin.ByteString readCertificate() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: AuditCertificateEventType
      Read the value of the Certificate Node from the server and update the local value if the operation succeeds.
      Specified by:
      readCertificate in interface AuditCertificateEventType
      Returns:
      the ByteString value read from the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • writeCertificate

      public void writeCertificate(org.eclipse.milo.opcua.stack.core.types.builtin.ByteString value) throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: AuditCertificateEventType
      Write a new value for the Certificate Node to the server and update the local value if the operation succeeds.
      Specified by:
      writeCertificate in interface AuditCertificateEventType
      Parameters:
      value - the ByteString value to write to the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • readCertificateAsync

      public CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.ByteString> readCertificateAsync()
      Description copied from interface: AuditCertificateEventType
      An asynchronous implementation of AuditCertificateEventType.readCertificate().
      Specified by:
      readCertificateAsync in interface AuditCertificateEventType
      Returns:
      a CompletableFuture that completes successfully with the value or completes exceptionally if an operation- or service-level error occurs.
    • writeCertificateAsync

      public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeCertificateAsync(org.eclipse.milo.opcua.stack.core.types.builtin.ByteString certificate)
      Description copied from interface: AuditCertificateEventType
      Specified by:
      writeCertificateAsync in interface AuditCertificateEventType
      Returns:
      a CompletableFuture that completes successfully with the operation result or completes exceptionally if a service-level error occurs.
    • getCertificateNode

      public PropertyTypeNode getCertificateNode() throws org.eclipse.milo.opcua.stack.core.UaException
      Description copied from interface: AuditCertificateEventType
      Get the Certificate PropertyType Node, or null if it does not exist.

      The Node is created when first accessed and cached for subsequent calls.

      Specified by:
      getCertificateNode in interface AuditCertificateEventType
      Returns:
      the Certificate PropertyType Node, or null if it does not exist.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if an error occurs creating or getting the Node.
    • getCertificateNodeAsync

      public CompletableFuture<? extends PropertyTypeNode> getCertificateNodeAsync()
      Description copied from interface: AuditCertificateEventType
      Asynchronous implementation of AuditCertificateEventType.getCertificateNode().
      Specified by:
      getCertificateNodeAsync in interface AuditCertificateEventType
      Returns:
      a CompletableFuture that completes successfully with the PropertyType Node or completes exceptionally if an error occurs creating or getting the Node.