Interface KeymanagerService
-
- All Known Implementing Classes:
KeymanagerServiceImpl
public interface KeymanagerServiceThis interface provides the methods which can be used for Key management- Since:
- 1.0.0
- Author:
- Dharmesh Khandelwal, Urvil Joshi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SymmetricKeyResponseDtodecryptSymmetricKey(SymmetricKeyRequestDto symmetricKeyRequestDto)Function to decrypt symmetric keyKeyPairGenerateResponseDtogenerateCSR(CSRGenerateRequestDto csrGenRequestDto)Function to get CSR for the provided appId & refId.KeyPairGenerateResponseDtogenerateMasterKey(String objectType, KeyPairGenerateRequestDto request)Function to generate Master key pair in the HSM specified in config.KeyPairGenerateResponseDtogetCertificate(String appId, Optional<String> refId)Function to get certificate for the provided appId & refId.SignatureCertificategetSignatureCertificate(String applicationId, Optional<String> referenceId, String timestamp)PublicKeyResponse<String>getSignPublicKey(String applicationId, String timeStamp, Optional<String> referenceId)Function to get public keyUploadCertificateResponseDtouploadCertificate(UploadCertificateRequestDto uploadCertRequestDto)Function to upload certificate for the provided appId & refId.UploadCertificateResponseDtouploadOtherDomainCertificate(UploadCertificateRequestDto uploadCertRequestDto)Function to upload other domain certificate for the provided appId & refId.
-
-
-
Method Detail
-
decryptSymmetricKey
SymmetricKeyResponseDto decryptSymmetricKey(SymmetricKeyRequestDto symmetricKeyRequestDto)
Function to decrypt symmetric key- Parameters:
symmetricKeyRequestDto- symmetricKeyRequestDto- Returns:
SymmetricKeyResponseDtoinstance
-
getSignPublicKey
PublicKeyResponse<String> getSignPublicKey(String applicationId, String timeStamp, Optional<String> referenceId)
Function to get public key- Parameters:
applicationId- applicationIdtimeStamp- timeStampreferenceId- referenceId- Returns:
PublicKeyResponseinstance
-
getSignatureCertificate
SignatureCertificate getSignatureCertificate(String applicationId, Optional<String> referenceId, String timestamp)
-
generateMasterKey
KeyPairGenerateResponseDto generateMasterKey(String objectType, KeyPairGenerateRequestDto request)
Function to generate Master key pair in the HSM specified in config.- Parameters:
KeyPairGenerateRequestDto- request- Returns:
KeyPairGenerateResponseDtoinstance
-
getCertificate
KeyPairGenerateResponseDto getCertificate(String appId, Optional<String> refId)
Function to get certificate for the provided appId & refId.- Parameters:
Application- ID appIdReference- ID refId- Returns:
KeyPairGenerateResponseDtoinstance
-
generateCSR
KeyPairGenerateResponseDto generateCSR(CSRGenerateRequestDto csrGenRequestDto)
Function to get CSR for the provided appId & refId.- Parameters:
CSRGenerateRequestDto- request- Returns:
KeyPairGenerateResponseDtoinstance
-
uploadCertificate
UploadCertificateResponseDto uploadCertificate(UploadCertificateRequestDto uploadCertRequestDto)
Function to upload certificate for the provided appId & refId.- Parameters:
UploadCertificateRequestDto- request- Returns:
UploadCertificateResponseDtoinstance
-
uploadOtherDomainCertificate
UploadCertificateResponseDto uploadOtherDomainCertificate(UploadCertificateRequestDto uploadCertRequestDto)
Function to upload other domain certificate for the provided appId & refId.- Parameters:
UploadCertificateRequestDto- request- Returns:
UploadCertificateResponseDtoinstance
-
-