Class ClientCryptoFacade
- java.lang.Object
-
- io.mosip.kernel.clientcrypto.service.impl.ClientCryptoFacade
-
@Component public class ClientCryptoFacade extends Object
-
-
Constructor Summary
Constructors Constructor Description ClientCryptoFacade()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]decrypt(byte[] dataToDecrypt)byte[]encrypt(byte[] publicKey, byte[] dataToEncrypt, boolean isTPM)static byte[]generateRandomBytes(int length)ClientCryptoServicegetClientSecurity()static voidsetIsTPMRequired(boolean flag)booleanvalidateSignature(byte[] publicKey, byte[] signature, byte[] actualData, boolean isTPM)
-
-
-
Method Detail
-
setIsTPMRequired
public static void setIsTPMRequired(boolean flag)
-
getClientSecurity
public ClientCryptoService getClientSecurity()
-
validateSignature
public boolean validateSignature(byte[] publicKey, byte[] signature, byte[] actualData, boolean isTPM)
-
encrypt
public byte[] encrypt(byte[] publicKey, byte[] dataToEncrypt, boolean isTPM)
-
decrypt
public byte[] decrypt(byte[] dataToDecrypt)
-
generateRandomBytes
public static byte[] generateRandomBytes(int length)
-
-