public interface CryptoProvider
| Modifier and Type | Method and Description |
|---|---|
byte[] |
base64Decode(String string) |
String |
base64Encode(byte[] bytes) |
Mac |
createMac(SecurityAlgorithm algorithm,
byte[] secret) |
int |
decryptAsymm(PrivateKey decryptingKey,
SecurityAlgorithm algorithm,
byte[] dataToDecrypt,
byte[] output,
int outputOffset) |
int |
decryptSymm(SecurityPolicy policy,
byte[] encryptingKey,
byte[] initializationVector,
byte[] dataToDecrypt,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset) |
void |
encryptAsymm(PublicKey encryptingCertificate,
SecurityAlgorithm algorithm,
byte[] dataToEncrypt,
byte[] output,
int outputOffset) |
int |
encryptSymm(SecurityPolicy policy,
byte[] encryptingKey,
byte[] initializationVector,
byte[] dataToEncrypt,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset) |
Provider |
getSecurityProvider()
Should return
Provider suitable for cryto operations. |
String |
getSecurityProviderName(Class<?> clazz)
Deprecated.
use
getSecurityProvider() instead. |
byte[] |
signAsymm(PrivateKey senderPrivate,
SecurityAlgorithm algorithm,
byte[] dataToSign) |
void |
signSymm(SecurityPolicy policy,
byte[] key,
byte[] input,
int inputOffset,
int verifyLen,
byte[] output,
int outputOffset) |
boolean |
verifyAsymm(PublicKey signingCertificate,
SecurityAlgorithm algorithm,
byte[] dataToVerify,
byte[] signature) |
void |
verifySymm(SecurityPolicy policy,
byte[] key,
byte[] dataToVerify,
int inputOffset,
int verifyLen,
byte[] signature) |
byte[] base64Decode(String string)
String base64Encode(byte[] bytes)
Mac createMac(SecurityAlgorithm algorithm, byte[] secret) throws ServiceResultException
ServiceResultExceptionint decryptAsymm(PrivateKey decryptingKey, SecurityAlgorithm algorithm, byte[] dataToDecrypt, byte[] output, int outputOffset) throws ServiceResultException
ServiceResultExceptionint decryptSymm(SecurityPolicy policy, byte[] encryptingKey, byte[] initializationVector, byte[] dataToDecrypt, int inputOffset, int inputLength, byte[] output, int outputOffset) throws ServiceResultException
ServiceResultExceptionvoid encryptAsymm(PublicKey encryptingCertificate, SecurityAlgorithm algorithm, byte[] dataToEncrypt, byte[] output, int outputOffset) throws ServiceResultException
ServiceResultExceptionint encryptSymm(SecurityPolicy policy, byte[] encryptingKey, byte[] initializationVector, byte[] dataToEncrypt, int inputOffset, int inputLength, byte[] output, int outputOffset) throws ServiceResultException
ServiceResultExceptionProvider getSecurityProvider()
Provider suitable for cryto operations.@Deprecated String getSecurityProviderName(Class<?> clazz)
getSecurityProvider() instead.clazz - Specific case that could require different provider name. Can be null, if no
specific one is requested.byte[] signAsymm(PrivateKey senderPrivate, SecurityAlgorithm algorithm, byte[] dataToSign) throws ServiceResultException
ServiceResultExceptionvoid signSymm(SecurityPolicy policy, byte[] key, byte[] input, int inputOffset, int verifyLen, byte[] output, int outputOffset) throws ServiceResultException
ServiceResultExceptionboolean verifyAsymm(PublicKey signingCertificate, SecurityAlgorithm algorithm, byte[] dataToVerify, byte[] signature) throws ServiceResultException
ServiceResultExceptionvoid verifySymm(SecurityPolicy policy, byte[] key, byte[] dataToVerify, int inputOffset, int verifyLen, byte[] signature) throws ServiceResultException
ServiceResultExceptionCopyright © 2026. All rights reserved.