Class ServerKeystoreLoader

java.lang.Object
test.de.iip_ecosphere.platform.connectors.opcuav1.ServerKeystoreLoader

class ServerKeystoreLoader extends Object
A server keystore loader/generator.
Author:
Taken from the OPC UA examples
  • Field Details

    • IP_ADDR_PATTERN

      private static final Pattern IP_ADDR_PATTERN
    • SERVER_ALIAS

      private static final String SERVER_ALIAS
      See Also:
    • PASSWORD

      private static final char[] PASSWORD
    • logger

      private final de.iip_ecosphere.platform.support.logging.Logger logger
    • serverCertificateChain

      private X509Certificate[] serverCertificateChain
    • serverCertificate

      private X509Certificate serverCertificate
    • serverKeyPair

      private KeyPair serverKeyPair
  • Constructor Details

    • ServerKeystoreLoader

      ServerKeystoreLoader()
  • Method Details

    • load

      Loads the server keystore from the given base directory.
      Parameters:
      baseDir - the base directory
      Returns:
      this
      Throws:
      ExecutionException - if anything goes wrong
    • getServerCertificate

      X509Certificate getServerCertificate()
      Returns the server certificate.
      Returns:
      the server certificate
    • getServerCertificateChain

      public X509Certificate[] getServerCertificateChain()
      Returns the server certificate chain.
      Returns:
      the server certificate chain
    • getServerKeyPair

      KeyPair getServerKeyPair()
      Returns the server key pair.
      Returns:
      the server key pair