Class ClientKeystoreLoader


  • class ClientKeystoreLoader
    extends java.lang.Object
    Loads a keystore from the client perspective.
    Author:
    Taken from the OPC UA examples
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.security.cert.X509Certificate getClientCertificate()
      Returns the client certificate.
      (package private) java.security.KeyPair getClientKeyPair()
      Returns the client encryption key pair.
      (package private) ClientKeystoreLoader load​(java.io.File baseDir)
      Loads the client keystore.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • IP_ADDR_PATTERN

        private static final java.util.regex.Pattern IP_ADDR_PATTERN
      • PASSWORD

        private static final char[] PASSWORD
      • logger

        private final org.slf4j.Logger logger
      • clientCertificate

        private java.security.cert.X509Certificate clientCertificate
      • clientKeyPair

        private java.security.KeyPair clientKeyPair
    • Constructor Detail

      • ClientKeystoreLoader

        ClientKeystoreLoader()
    • Method Detail

      • load

        ClientKeystoreLoader load​(java.io.File baseDir)
                           throws java.util.concurrent.ExecutionException
        Loads the client keystore.
        Parameters:
        baseDir - the base directory
        Returns:
        this
        Throws:
        java.util.concurrent.ExecutionException - if anything goes wrong
      • getClientCertificate

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

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