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 Summary
Fields Modifier and Type Field Description private static StringCLIENT_ALIASprivate X509CertificateclientCertificateprivate KeyPairclientKeyPairprivate static PatternIP_ADDR_PATTERNprivate org.slf4j.Loggerloggerprivate static char[]PASSWORD -
Constructor Summary
Constructors Constructor Description ClientKeystoreLoader() -
Method Summary
Modifier and Type Method Description (package private) X509CertificategetClientCertificate()Returns the client certificate.(package private) KeyPairgetClientKeyPair()Returns the client encryption key pair.(package private) ClientKeystoreLoaderload(File baseDir)Loads the client keystore.
-
Field Details
-
IP_ADDR_PATTERN
-
CLIENT_ALIAS
- See Also:
- Constant Field Values
-
PASSWORD
private static final char[] PASSWORD -
logger
private final org.slf4j.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
-