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 Constructor Description ClientCryptoManagerServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TpmCryptoResponseDtocsDecrypt(TpmCryptoRequestDto tpmCryptoRequestDto)Decrypts cipher with TPM private keyTpmCryptoResponseDtocsEncrypt(TpmCryptoRequestDto tpmCryptoRequestDto)Encrypt data with TPM public keyTpmSignResponseDtocsSign(TpmSignRequestDto tpmSignRequestDto)Signs with TPM private keyTpmSignVerifyResponseDtocsVerify(TpmSignVerifyRequestDto tpmSignVerifyRequestDto)Verify provided signature and data with TPM public keyPublicKeyResponseDtogetEncPublicKey(PublicKeyRequestDto publicKeyRequestDto)Returns TPM encryption public keyPublicKeyResponseDtogetSigningPublicKey(PublicKeyRequestDto publicKeyRequestDto)Returns TPM public key
-
-
-
Method Detail
-
csSign
public TpmSignResponseDto csSign(TpmSignRequestDto tpmSignRequestDto)
Description copied from interface:ClientCryptoManagerServiceSigns with TPM private key- Specified by:
csSignin interfaceClientCryptoManagerService- Returns:
- TpmSignResponseDto
-
csVerify
public TpmSignVerifyResponseDto csVerify(TpmSignVerifyRequestDto tpmSignVerifyRequestDto)
Description copied from interface:ClientCryptoManagerServiceVerify provided signature and data with TPM public key- Specified by:
csVerifyin interfaceClientCryptoManagerService- Returns:
- TpmSignVerifyResponseDto
-
csEncrypt
public TpmCryptoResponseDto csEncrypt(TpmCryptoRequestDto tpmCryptoRequestDto)
Description copied from interface:ClientCryptoManagerServiceEncrypt data with TPM public key- Specified by:
csEncryptin interfaceClientCryptoManagerService- Returns:
- TpmCryptoResponseDto
-
csDecrypt
public TpmCryptoResponseDto csDecrypt(TpmCryptoRequestDto tpmCryptoRequestDto)
Description copied from interface:ClientCryptoManagerServiceDecrypts cipher with TPM private key- Specified by:
csDecryptin interfaceClientCryptoManagerService- Returns:
- TpmCryptoResponseDto
-
getSigningPublicKey
public PublicKeyResponseDto getSigningPublicKey(PublicKeyRequestDto publicKeyRequestDto)
Description copied from interface:ClientCryptoManagerServiceReturns TPM public key- Specified by:
getSigningPublicKeyin interfaceClientCryptoManagerService- Returns:
-
getEncPublicKey
public PublicKeyResponseDto getEncPublicKey(PublicKeyRequestDto publicKeyRequestDto)
Description copied from interface:ClientCryptoManagerServiceReturns TPM encryption public key- Specified by:
getEncPublicKeyin interfaceClientCryptoManagerService- Returns:
-
-