| Package | Description |
|---|---|
| com.prosysopc.ua |
Common classes for client and server side.
|
| com.prosysopc.ua.stack.transport.security |
This folder contains common security related classes
|
| com.prosysopc.ua.stack.utils |
Utility classes
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
SecureIdentity.decrypt(SecurityAlgorithm algorithm,
byte[] dataToDecrypt,
PrivKey privKey)
Decrypt data using the provided securityPolicy.
|
| Modifier and Type | Method and Description |
|---|---|
SecurityAlgorithm |
SecurityPolicy.getAsymmetricEncryptionAlgorithm()
Getter for the field
asymmetricEncryptionAlgorithm. |
SecurityAlgorithm |
SecurityPolicy.getAsymmetricKeyWrapAlgorithm()
Getter for the field
asymmetricKeyWrapAlgorithm. |
SecurityAlgorithm |
SecurityPolicy.getAsymmetricSignatureAlgorithm()
Getter for the field
asymmetricSignatureAlgorithm. |
SecurityAlgorithm |
SecurityPolicy.getKeyDerivationAlgorithm()
Getter for the field
keyDerivationAlgorithm. |
SecurityAlgorithm |
SecurityPolicy.getSymmetricEncryptionAlgorithm()
Getter for the field
symmetricEncryptionAlgorithm. |
SecurityAlgorithm |
SecurityPolicy.getSymmetricSignatureAlgorithm()
Getter for the field
symmetricSignatureAlgorithm. |
static SecurityAlgorithm |
SecurityAlgorithm.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SecurityAlgorithm |
SecurityAlgorithm.valueOfUri(String algorithmUri)
Find the SecurityAlgorithm with URI.
|
static SecurityAlgorithm[] |
SecurityAlgorithm.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
Mac |
JceCryptoProvider.createMac(SecurityAlgorithm algorithm,
byte[] secret) |
Mac |
CryptoProvider.createMac(SecurityAlgorithm algorithm,
byte[] secret) |
Mac |
BcCryptoProvider.createMac(SecurityAlgorithm algorithm,
byte[] secret) |
int |
JceCryptoProvider.decryptAsymm(PrivateKey decryptingKey,
SecurityAlgorithm algorithm,
byte[] dataToDecrypt,
byte[] output,
int outputOffset) |
int |
CryptoProvider.decryptAsymm(PrivateKey decryptingKey,
SecurityAlgorithm algorithm,
byte[] dataToDecrypt,
byte[] output,
int outputOffset) |
int |
BcCryptoProvider.decryptAsymm(PrivateKey decryptingKey,
SecurityAlgorithm algorithm,
byte[] dataToDecrypt,
byte[] output,
int outputOffset) |
void |
JceCryptoProvider.encryptAsymm(PublicKey remotePublicKey,
SecurityAlgorithm algorithm,
byte[] dataToEncrypt,
byte[] output,
int outputOffset) |
void |
CryptoProvider.encryptAsymm(PublicKey encryptingCertificate,
SecurityAlgorithm algorithm,
byte[] dataToEncrypt,
byte[] output,
int outputOffset) |
void |
BcCryptoProvider.encryptAsymm(PublicKey encryptingCertificate,
SecurityAlgorithm algorithm,
byte[] dataToEncrypt,
byte[] output,
int outputOffset) |
byte[] |
JceCryptoProvider.signAsymm(PrivateKey senderPrivate,
SecurityAlgorithm algorithm,
byte[] dataToSign) |
byte[] |
CryptoProvider.signAsymm(PrivateKey senderPrivate,
SecurityAlgorithm algorithm,
byte[] dataToSign) |
byte[] |
BcCryptoProvider.signAsymm(PrivateKey senderPrivate,
SecurityAlgorithm algorithm,
byte[] dataToSign) |
boolean |
JceCryptoProvider.verifyAsymm(PublicKey signingCertificate,
SecurityAlgorithm algorithm,
byte[] dataToVerify,
byte[] signature) |
boolean |
CryptoProvider.verifyAsymm(PublicKey signingCertificate,
SecurityAlgorithm algorithm,
byte[] dataToVerify,
byte[] signature) |
boolean |
BcCryptoProvider.verifyAsymm(PublicKey signingCertificate,
SecurityAlgorithm algorithm,
byte[] dataToVerify,
byte[] signature) |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
CryptoUtil.asymmEncrypt(byte[] input,
Key key,
SecurityAlgorithm algorithm)
Deprecated.
|
static Mac |
CryptoUtil.createMac(SecurityAlgorithm algorithm,
byte[] secret)
Create Message Authentication Code (MAC).
|
static ByteString |
CryptoUtil.createNonce(SecurityAlgorithm algorithm)
Deprecated.
use
CryptoUtil.createNonce(int) and get the size from
SecurityPolicy.getSecureChannelNonceLength() directly |
static byte[] |
CryptoUtil.encryptAsymm(byte[] input,
PublicKey key,
SecurityAlgorithm algorithm)
|
static Cipher |
CryptoUtil.getAsymmetricCipher(SecurityAlgorithm algorithm)
Create signer instance using an algorithm uri.
|
static int |
CryptoUtil.getAsymmInputBlockSize(SecurityAlgorithm algorithm)
getAsymmInputBlockSize.
|
static int |
CryptoUtil.getCipherBlockSize(SecurityAlgorithm algorithm,
Key key)
Get cipher block (=output) size in bytes.
|
static int |
CryptoUtil.getNonceLength(SecurityAlgorithm algorithm)
Deprecated.
use
SecurityPolicy.getSecureChannelNonceLength() directly instead |
static int |
CryptoUtil.getPlainTextBlockSize(SecurityAlgorithm securityAlgorithm,
Key key)
Get plain text block (=input) size in bytes.
|
static int |
CryptoUtil.getSignatureSize(SecurityAlgorithm signatureAlgorithm,
Key key)
Get signature size in bytes.
|
static SignatureData |
CertificateUtils.sign(PrivateKey signerKey,
SecurityAlgorithm algorithm,
byte[] dataToSign)
Deprecated.
|
static SignatureData |
CryptoUtil.signAsymm(PrivateKey signerKey,
SecurityAlgorithm algorithm,
byte[] dataToSign)
signAsymm.
|
static boolean |
CertificateUtils.verify(X509Certificate certificate,
SecurityAlgorithm algorithm,
byte[] data,
byte[] signature)
Deprecated.
|
static boolean |
CryptoUtil.verifyAsymm(X509Certificate certificate,
SecurityAlgorithm algorithm,
byte[] data,
byte[] signature)
Verify a signature.
|
Copyright © 2026. All rights reserved.