-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#2 Update KeyManagerService #7
Conversation
Added android based testing. |
...anager/src/main/java/io/mosip/registration/clientmanager/dto/crypto/PublicKeyRequestDto.java
Outdated
Show resolved
Hide resolved
...in/java/io/mosip/registration/clientmanager/service/crypto/LocalClientCryptoServiceImpl.java
Outdated
Show resolved
Hide resolved
try { | ||
String keyRequest = publicKeyRequestDto.getServerProfile(); | ||
Log.i(TAG, "getPublicKey: Public key accessed for " + keyRequest); | ||
if(keyRequest == "sign") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create a separate class to create these constants. and use static way of accessing this constants.
check this example - https://github.com/mosip/keymanager/blob/develop/kernel/kernel-keymanager-service/src/main/java/io/mosip/kernel/cryptomanager/constant/CryptomanagerConstant.java
and also error codes example from here - https://github.com/mosip/keymanager/blob/develop/kernel/kernel-keymanager-service/src/main/java/io/mosip/kernel/cryptomanager/constant/CryptomanagerErrorCode.java
This PR is part of #2 |
added 2 separate keystore aliases for endec and sign
added separate key pair generation for endec and sign
symmetric key is now generated and used within encryption
fixed log messages
moved all property initialization to properties.config
updated UI
getPublicKey() provides either signing public key or encryption public key based on contents PublicKeyRequestDto