Class ClientKeystoreLoader

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

class ClientKeystoreLoader extends Object
Loads a keystore from the client perspective.
Author:
Taken from the OPC UA examples
  • Field Details

    • IP_ADDR_PATTERN

      private static final Pattern IP_ADDR_PATTERN
    • CLIENT_ALIAS

      private static final String CLIENT_ALIAS
      See Also:
    • PASSWORD

      private static final char[] PASSWORD
    • logger

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

      private X509Certificate clientCertificate
    • clientKeyPair

      private KeyPair clientKeyPair
  • Constructor Details

    • ClientKeystoreLoader

      ClientKeystoreLoader()
  • Method Details

    • load

      Loads the client keystore.
      Parameters:
      baseDir - the base directory
      Returns:
      this
      Throws:
      ExecutionException - if anything goes wrong
    • getClientCertificate

      X509Certificate getClientCertificate()
      Returns the client certificate.
      Returns:
      the client certificate
    • getClientKeyPair

      KeyPair getClientKeyPair()
      Returns the client encryption key pair.
      Returns:
      the client key pair