Class ClientKeystoreLoader
java.lang.Object
test.de.iip_ecosphere.platform.connectors.opcuav1.ClientKeystoreLoader
Loads a keystore from the client perspective.
- Author:
- Taken from the OPC UA examples
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate X509Certificateprivate KeyPairprivate static final Patternprivate final de.iip_ecosphere.platform.support.logging.Loggerprivate static final char[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) X509CertificateReturns the client certificate.(package private) KeyPairReturns the client encryption key pair.(package private) ClientKeystoreLoaderLoads the client keystore.
-
Field Details
-
IP_ADDR_PATTERN
-
CLIENT_ALIAS
- See Also:
-
PASSWORD
private static final char[] PASSWORD -
logger
private final de.iip_ecosphere.platform.support.logging.Logger logger -
clientCertificate
-
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
-