Class ClientCryptoManagerServiceImpl
java.lang.Object
io.mosip.kernel.clientcrypto.service.impl.ClientCryptoManagerServiceImpl
- All Implemented Interfaces:
ClientCryptoManagerService
@Service
public class ClientCryptoManagerServiceImpl
extends Object
implements ClientCryptoManagerService
- Since:
- 1.1.2
- Author:
- Anusha Sunkada
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncsDecrypt(TpmCryptoRequestDto tpmCryptoRequestDto) Decrypts cipher with TPM private keycsEncrypt(TpmCryptoRequestDto tpmCryptoRequestDto) Encrypt data with TPM public keycsSign(TpmSignRequestDto tpmSignRequestDto) Signs with TPM private keycsVerify(TpmSignVerifyRequestDto tpmSignVerifyRequestDto) Verify provided signature and data with TPM public keygetEncPublicKey(PublicKeyRequestDto publicKeyRequestDto) Returns TPM encryption public keygetSigningPublicKey(PublicKeyRequestDto publicKeyRequestDto) Returns TPM public key
-
Constructor Details
-
ClientCryptoManagerServiceImpl
public ClientCryptoManagerServiceImpl()
-
-
Method Details
-
csSign
Description copied from interface:ClientCryptoManagerServiceSigns with TPM private key- Specified by:
csSignin interfaceClientCryptoManagerService- Parameters:
tpmSignRequestDto-- Returns:
- TpmSignResponseDto
-
csVerify
Description copied from interface:ClientCryptoManagerServiceVerify provided signature and data with TPM public key- Specified by:
csVerifyin interfaceClientCryptoManagerService- Parameters:
tpmSignVerifyRequestDto-- Returns:
- TpmSignVerifyResponseDto
-
csEncrypt
Description copied from interface:ClientCryptoManagerServiceEncrypt data with TPM public key- Specified by:
csEncryptin interfaceClientCryptoManagerService- Parameters:
tpmCryptoRequestDto-- Returns:
- TpmCryptoResponseDto
-
csDecrypt
Description copied from interface:ClientCryptoManagerServiceDecrypts cipher with TPM private key- Specified by:
csDecryptin interfaceClientCryptoManagerService- Parameters:
tpmCryptoRequestDto-- Returns:
- TpmCryptoResponseDto
-
getSigningPublicKey
Description copied from interface:ClientCryptoManagerServiceReturns TPM public key- Specified by:
getSigningPublicKeyin interfaceClientCryptoManagerService- Parameters:
publicKeyRequestDto-- Returns:
-
getEncPublicKey
Description copied from interface:ClientCryptoManagerServiceReturns TPM encryption public key- Specified by:
getEncPublicKeyin interfaceClientCryptoManagerService- Parameters:
publicKeyRequestDto-- Returns:
-