Skip to content
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

Merged
merged 6 commits into from
Oct 19, 2018
Merged

Remove RSA Public Key #21

merged 6 commits into from
Oct 19, 2018

Conversation

binglihub
Copy link
Contributor

  1. remove RSA public key requirement
  2. upgrade Jackson libs tp 2.9.6
  3. create integration test

KeyFactory kf = KeyFactory.getInstance("RSA");

//generate public key from private key
RSAPrivateCrtKey privk = (RSAPrivateCrtKey) privateKey;
Copy link
Contributor

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

Copy link
Contributor Author

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
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

@@ -0,0 +1,3 @@
"a",1
Copy link
Contributor

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

@howryu howryu merged commit 125ed0b into snowflakedb:master Oct 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants