-
Notifications
You must be signed in to change notification settings - Fork 48
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
Remove RSA Public Key #21
Conversation
binglihub
commented
Oct 19, 2018
- remove RSA public key requirement
- upgrade Jackson libs tp 2.9.6
- create integration test
KeyFactory kf = KeyFactory.getInstance("RSA"); | ||
|
||
//generate public key from private key | ||
RSAPrivateCrtKey privk = (RSAPrivateCrtKey) privateKey; |
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.
Throw proper user error in case user is passing in a PrivateKey not instancesof RSAPrivateCrtKey
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.
I added a checker
if(!(privateKey instanceof RSAPrivateCrtKey))
throw new IllegalArgumentException("Input private key is not a RSA private key");
* ingest test | ||
*/ | ||
@Test | ||
public void test1() throws Exception |
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.
Maybe a better name? testSimpleIngest?
@After | ||
public void afterAll() | ||
{ | ||
//System.out.println(111); |
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.
remove
test_files/test1.csv
Outdated
@@ -0,0 +1,3 @@ | |||
"a",1 |
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.
Maybe add move test data to test resource directory? src/test/resource