Class MiloServerComponent

  • All Implemented Interfaces:
    AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.Component, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

    @Component("milo-server")
    public class MiloServerComponent
    extends org.apache.camel.support.DefaultComponent
    OPC UA Server based component
    • Constructor Detail

      • MiloServerComponent

        public MiloServerComponent()
      • MiloServerComponent

        public MiloServerComponent​(org.eclipse.milo.opcua.sdk.server.api.config.OpcUaServerConfig serverConfig)
    • Method Detail

      • doStart

        protected void doStart()
                        throws Exception
        Overrides:
        doStart in class org.apache.camel.support.DefaultComponent
        Throws:
        Exception
      • doStop

        protected void doStop()
                       throws Exception
        Overrides:
        doStop in class org.apache.camel.support.DefaultComponent
        Throws:
        Exception
      • createEndpoint

        protected org.apache.camel.Endpoint createEndpoint​(String uri,
                                                           String remaining,
                                                           Map<String,​Object> parameters)
                                                    throws Exception
        Specified by:
        createEndpoint in class org.apache.camel.support.DefaultComponent
        Throws:
        Exception
      • loadServerCertificate

        public void loadServerCertificate​(KeyStoreLoader.Result result)
        Server certificate
      • loadServerCertificate

        public void loadServerCertificate​(KeyPair keyPair,
                                          X509Certificate certificate)
        Server certificate
      • setCertificate

        public void setCertificate​(X509Certificate certificate)
        Server certificate
      • setNamespaceUri

        public void setNamespaceUri​(String namespaceUri)
        The URI of the namespace, defaults to urn:org:apache:camel
      • setApplicationName

        public void setApplicationName​(String applicationName)
        The application name
      • setPath

        public void setPath​(String path)
        The path to be appended to the end of the endpoint url. (doesn't need to start with '/')
      • setApplicationUri

        public void setApplicationUri​(String applicationUri)
        The application URI
      • setProductUri

        public void setProductUri​(String productUri)
        The product URI
      • setPort

        public void setPort​(int port)
        The TCP port the server binds to
      • setSecurityPolicies

        public void setSecurityPolicies​(Set<org.eclipse.milo.opcua.stack.core.security.SecurityPolicy> securityPolicies)
        Security policies
      • setSecurityPoliciesById

        public void setSecurityPoliciesById​(String securityPoliciesById)
        Security policies by URI or name. Multiple policies can be separated by comma.
      • getSecurityPoliciesById

        public String getSecurityPoliciesById()
      • setUserAuthenticationCredentials

        public void setUserAuthenticationCredentials​(String userAuthenticationCredentials)
        Set user password combinations in the form of "user1:pwd1,user2:pwd2" Usernames and passwords will be URL decoded
      • getUserAuthenticationCredentials

        public String getUserAuthenticationCredentials()
      • setEnableAnonymousAuthentication

        public void setEnableAnonymousAuthentication​(boolean enableAnonymousAuthentication)
        Enable anonymous authentication, disabled by default
      • setUsernameSecurityPolicyUri

        public void setUsernameSecurityPolicyUri​(org.eclipse.milo.opcua.stack.core.security.SecurityPolicy usernameSecurityPolicy)
        Set the UserTokenPolicy used when
      • setUsernameSecurityPolicyUri

        public void setUsernameSecurityPolicyUri​(String usernameSecurityPolicyUri)
        Set the UserTokenPolicy used when
      • setBindAddresses

        public void setBindAddresses​(String bindAddresses)
        Set the addresses of the local addresses the server should bind to
      • setBuildInfo

        public void setBuildInfo​(org.eclipse.milo.opcua.stack.core.types.structured.BuildInfo buildInfo)
        Server build info
      • setCertificateManager

        public void setCertificateManager​(org.eclipse.milo.opcua.stack.core.security.CertificateManager certificateManager)
        Server certificate manager
      • setCertificateValidator

        public void setCertificateValidator​(org.eclipse.milo.opcua.stack.server.security.ServerCertificateValidator certificateValidator)
        Validator for client certificates
      • setDefaultCertificateValidator

        public void setDefaultCertificateValidator​(String defaultCertificateValidator)
        Validator for client certificates using default file based approach
      • getDefaultCertificateValidator

        public String getDefaultCertificateValidator()
      • getPort

        public int getPort()
      • getNamespaceUri

        public String getNamespaceUri()
      • getServer

        public org.eclipse.milo.opcua.sdk.server.OpcUaServer getServer()
      • isEnableAnonymousAuthentication

        public Boolean isEnableAnonymousAuthentication()
      • getCertificateManager

        public org.eclipse.milo.opcua.stack.core.security.CertificateManager getCertificateManager()
      • getSecurityPolicies

        public Set<org.eclipse.milo.opcua.stack.core.security.SecurityPolicy> getSecurityPolicies()
      • getUsernameSecurityPolicyUri

        public String getUsernameSecurityPolicyUri()
      • getBindAddresses

        public List<String> getBindAddresses()
      • getCertificateValidator

        public org.eclipse.milo.opcua.stack.core.security.CertificateValidator getCertificateValidator()
      • getProductUri

        public String getProductUri()
      • getApplicationUri

        public String getApplicationUri()
      • getApplicationName

        public String getApplicationName()
      • getPath

        public String getPath()
      • getBuildInfo

        public org.eclipse.milo.opcua.stack.core.types.structured.BuildInfo getBuildInfo()