Class ServerKeystoreLoader
java.lang.Object
test.de.iip_ecosphere.platform.connectors.opcuav1.ServerKeystoreLoader
A server keystore loader/generator.
- Author:
- Taken from the OPC UA examples
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Patternprivate final de.iip_ecosphere.platform.support.logging.Loggerprivate static final char[]private static final Stringprivate X509Certificateprivate X509Certificate[]private KeyPair -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) X509CertificateReturns the server certificate.Returns the server certificate chain.(package private) KeyPairReturns the server key pair.(package private) ServerKeystoreLoaderLoads the server keystore from the given base directory.
-
Field Details
-
IP_ADDR_PATTERN
-
SERVER_ALIAS
- See Also:
-
PASSWORD
private static final char[] PASSWORD -
logger
private final de.iip_ecosphere.platform.support.logging.Logger logger -
serverCertificateChain
-
serverCertificate
-
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
Returns the server certificate chain.- Returns:
- the server certificate chain
-
getServerKeyPair
KeyPair getServerKeyPair()Returns the server key pair.- Returns:
- the server key pair
-