| Package | Description |
|---|---|
| com.prosysopc.ua |
Common classes for client and server side.
|
| com.prosysopc.ua.server |
Main server side classes of the SDK.
|
| Modifier and Type | Method and Description |
|---|---|
static ApplicationIdentity |
ApplicationIdentity.createCertificate(ApplicationDescription applicationDescription,
String organisation,
int keySize,
String... hostNames)
Create a new self-signed Application Identity certificate.
|
static ApplicationIdentity |
ApplicationIdentity.createCertificate(ApplicationDescription applicationDescription,
String organisation,
KeyPair issuerKeys,
int keySize,
String... hostNames)
Create a new Application Identity certificate.
|
static ApplicationIdentity |
ApplicationIdentity.createCertificate(ApplicationDescription applicationDescription,
String organisation,
KeyPair issuerKeys,
String... hostNames)
Deprecated.
this method depend on static state. Call
ApplicationIdentity.createCertificate(ApplicationDescription, String, KeyPair, int, String...)
instead. |
static ApplicationIdentity |
ApplicationIdentity.createCertificate(ApplicationDescription applicationDescription,
String organisation,
String... hostNames)
Deprecated.
this method depends on static state. Call
ApplicationIdentity.createCertificate(ApplicationDescription, String, int, String...) instead. |
static ApplicationIdentity |
ApplicationIdentity.createCertificate(String applicationName,
String organisation,
KeyPair issuerKeys,
String applicationUri,
int keySize,
String... hostNames)
Create the Application Identity certificate.
|
static ApplicationIdentity |
ApplicationIdentity.createCertificate(String applicationName,
String organisation,
KeyPair issuerKeys,
String applicationUri,
String... hostNames)
Deprecated.
this method depends on static state. Call
ApplicationIdentity.createCertificate(String, String, KeyPair, String, int, String...)
instead. |
static KeyPair |
ApplicationIdentity.createKeyPair(String commonName,
String organisation,
int certificateDays,
KeyPair issuerKeys,
String applicationUri,
int keySize,
String... hostNames)
Create a new Certificate.
|
static KeyPair |
ApplicationIdentity.createKeyPair(String commonName,
String organisation,
int certificateDays,
KeyPair issuerKeys,
String applicationUri,
String... hostNames)
Deprecated.
this method depends on static state. Call
ApplicationIdentity.createKeyPair(String, String, int, KeyPair, String, int, String...)
instead. |
protected byte[] |
SecureIdentity.decrypt(SecurityAlgorithm algorithm,
byte[] dataToDecrypt,
PrivKey privKey)
Decrypt data using the provided securityPolicy.
|
byte[] |
SecureIdentity.decrypt(SecurityPolicy securityPolicy,
byte[] dataToDecrypt)
Decrypt data using the provided securityPolicy.
|
protected void |
UserIdentity.decryptPassword(UserIdentityToken userIdentityToken,
ApplicationIdentity serverIdentity,
ByteString serverNonce,
Map<String,UserTokenPolicy> policyMap) |
protected void |
UserIdentity.decryptPassword(UserIdentityToken userIdentityToken,
KeyPair[] serverKeys,
ByteString serverNonce,
Map<String,UserTokenPolicy> policyMap) |
byte[] |
SecureIdentity.encrypt(SecurityPolicy securityPolicy,
byte[] dataToEncrypt)
Encrypt data using the provided securityPolicy.
|
protected static KeyPair |
ApplicationIdentity.loadCertificate(String certType,
String privateKeyPassword,
boolean enableRenew,
File certFile,
File privFile,
boolean usePfx) |
static ApplicationIdentity |
ApplicationIdentity.loadOrCreateCertificate(ApplicationDescription applicationDescription,
String organisation,
String privateKeyPassword,
File path,
boolean enableRenew,
String... hostNames)
Load the Application Identity certificate, or create a new one and save it.
|
static ApplicationIdentity |
ApplicationIdentity.loadOrCreateCertificate(ApplicationDescription applicationDescription,
String organisation,
String privateKeyPassword,
File path,
KeyPair issuerKeys,
int[] keySizes,
boolean enableRenew,
String... hostNames)
Load the Application Identity certificate, or create a new one and save it.
|
static ApplicationIdentity |
ApplicationIdentity.loadOrCreateCertificate(String applicationName,
String organisation,
File certFile,
File privFile,
String privateKeyPassword,
KeyPair issuerKeys,
boolean enableRenew,
String applicationUri,
int keySize,
String... hostNames)
Load the Application Identity certificate, or create a new one and save it.
|
static ApplicationIdentity |
ApplicationIdentity.loadOrCreateCertificate(String applicationName,
String organisation,
File certFile,
File privFile,
String privateKeyPassword,
KeyPair issuerKeys,
boolean enableRenew,
String applicationUri,
String... hostNames)
Deprecated.
this method depends on static state. Call
ApplicationIdentity.loadOrCreateCertificate(String, String, File, File, String, KeyPair, boolean, String, int, String...)
instead. |
static ApplicationIdentity |
ApplicationIdentity.loadOrCreateCertificate(String applicationName,
String organisation,
String privateKeyPassword,
File path,
KeyPair issuerKeys,
int[] keySizes,
boolean enableRenew,
String applicationUri,
String... hostNames)
Load the Application Identity certificate, or create a new one and save it.
|
protected static ApplicationIdentity |
ApplicationIdentity.loadOrCreateFromProtectedStore(ApplicationDescription applicationDescription,
String organisation,
String privateKeyPassword,
String keystoreLocation,
String keyStorePassword,
KeyPair issuerKeys,
int keySize,
String... hostNames)
Load the Application Identity certificate from a protected key store, or create a new one and
save it to the store.
|
protected static ApplicationIdentity |
ApplicationIdentity.loadOrCreateFromProtectedStore(ApplicationDescription applicationDescription,
String organisation,
String privateKeyPassword,
String keystoreLocation,
String keyStorePassword,
KeyPair issuerKeys,
String... hostNames)
Load the Application Identity certificate from a protected key store, or create a new one and
save it to the store.
|
static KeyPair |
ApplicationIdentity.loadOrCreateHttpsCertificate(ApplicationDescription applicationDecription,
String hostName,
String privateKeyPassword,
KeyPair issuerKeys,
File path,
boolean enableRenew)
Deprecated.
this method depends on static state. Call
ApplicationIdentity.loadOrCreateHttpsCertificate(ApplicationDescription, String, String, KeyPair, File, boolean, int)
instead. |
static KeyPair |
ApplicationIdentity.loadOrCreateHttpsCertificate(ApplicationDescription applicationDecription,
String hostName,
String privateKeyPassword,
KeyPair issuerKeys,
File path,
boolean enableRenew,
int keySize)
Load certificate and private key from applicationName_https.der & .pem - or create ones if they
do not exist
|
static KeyPair |
ApplicationIdentity.loadOrCreateIssuerCertificate(String issuerName,
File path,
String privateKeyPassword,
int days,
boolean enableRenew)
Load CA certificate and private key from
|
static KeyPair |
ApplicationIdentity.loadOrCreateIssuerCertificate(String issuerName,
File path,
String privateKeyPassword,
int days,
boolean enableRenew,
int keySize)
Load CA certificate and private key from
|
static KeyPair |
ApplicationIdentity.loadOrCreateKeyPair(String applicationName,
String organisation,
File certFile,
File privFile,
String privateKeyPassword,
KeyPair caKeys,
boolean enableRenew,
String applicationUri,
int keySize,
String... hostNames) |
static KeyPair |
ApplicationIdentity.loadOrCreateKeyPair(String applicationName,
String organisation,
File certFile,
File privFile,
String privateKeyPassword,
KeyPair caKeys,
boolean enableRenew,
String applicationUri,
String... hostNames)
Deprecated.
this method depends on static state. Call
ApplicationIdentity.loadOrCreateKeyPair(String, String, File, File, String, KeyPair, boolean, String, int, String...).
instead. |
| Constructor and Description |
|---|
ApplicationIdentity(File certificateFile,
File privateKeyFile,
String privateKeyPassword)
Create an identity with an application certificate.
|
ApplicationIdentity(File storeLocation,
String alias,
String privateKeyPassword,
String keyStorePassword,
String keyStoreType)
Create an identity with an application certificate.
|
ApplicationIdentity(URL certificateFile,
URL privateKeyFile,
String privateKeyPassword)
Create an identity with an application certificate.
|
SecureIdentity(File certificateFile,
File privateKeyFile,
String privateKeyPassword)
Create a new identity by loading the certificate and private key from files.
|
SecureIdentity(File storeLocation,
String alias,
String privateKeyPassword,
String keyStorePassword,
String keyStoreType)
Creates a new SecureIdentity object from a pfx-keystore file.
|
SecureIdentity(URL certificateFile,
URL privateKeyFile,
String privateKeyPassword)
Create a new identity by loading the certificate and private key from files.
|
UserIdentity(File certificateFile,
File privateKeyFile,
String privateKeyPassword)
Create an identity with a user certificate.
|
UserIdentity(URL certificateFile,
URL privateKeyFile,
String privateKeyPassword)
Create an identity with a user certificate.
|
| Constructor and Description |
|---|
ServerUserIdentity(SessionManager sessionManager,
UserIdentityToken userIdentityToken,
SignatureData userTokenSignature,
ApplicationIdentity serverIdentity,
ByteString serverNonce,
SecurityPolicy securityPolicy)
Deprecated.
Use constructor with KeyPair instead of this one with ApplicationIdentity. This
constructor will use the first KeyPair the ApplicationIdentity has, which can be
incorrect.
|
ServerUserIdentity(SessionManager sessionManager,
UserIdentityToken userIdentityToken,
SignatureData userTokenSignature,
KeyPair[] serverKeys,
ByteString serverNonce,
SecurityPolicy securityPolicy)
Create a new identity from the user token and server keys.
|
ServerUserIdentity(SessionManager sessionManager,
UserIdentityToken userIdentityToken,
SignatureData userTokenSignature,
KeyPair serverKeys,
ByteString serverNonce,
SecurityPolicy securityPolicy)
Create a new identity from the user token and server key.
|
Copyright © 2026. All rights reserved.