Class ClientKeystoreLoader
- java.lang.Object
-
- test.de.iip_ecosphere.platform.connectors.opcuav1.ClientKeystoreLoader
-
class ClientKeystoreLoader extends java.lang.ObjectLoads a keystore from the client perspective.- Author:
- Taken from the OPC UA examples
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringCLIENT_ALIASprivate java.security.cert.X509CertificateclientCertificateprivate java.security.KeyPairclientKeyPairprivate static java.util.regex.PatternIP_ADDR_PATTERNprivate org.slf4j.Loggerloggerprivate static char[]PASSWORD
-
Constructor Summary
Constructors Constructor Description ClientKeystoreLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.security.cert.X509CertificategetClientCertificate()Returns the client certificate.(package private) java.security.KeyPairgetClientKeyPair()Returns the client encryption key pair.(package private) ClientKeystoreLoaderload(java.io.File baseDir)Loads the client keystore.
-
-
-
Field Detail
-
IP_ADDR_PATTERN
private static final java.util.regex.Pattern IP_ADDR_PATTERN
-
CLIENT_ALIAS
private static final java.lang.String CLIENT_ALIAS
- See Also:
- Constant Field Values
-
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
-
-
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
-
-