-
Notifications
You must be signed in to change notification settings - Fork 26
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
Fix poms to contain versions #80
Conversation
@uschi2000 do I need to do anything with bintray creds here? e.g. do I need different ones or will the current ones be good? |
RSA("RSA", () -> RsaKeyPair.newKeyPair(), () -> RsaOaepEncrypter.INSTANCE); | ||
AES("AES", AesGcmEncrypter.INSTANCE) { | ||
@Override | ||
public KeyPair newKeyPair() { |
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.
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.
ok so we were being naughty with our enums before by having them take suppliers I guess
@@ -30,28 +29,35 @@ | |||
* algorithm with a supported key. | |||
*/ | |||
public enum Algorithm { | |||
AES("AES", () -> AesKeyPair.newKeyPair(), () -> AesGcmEncrypter.INSTANCE), | |||
RSA("RSA", () -> RsaKeyPair.newKeyPair(), () -> RsaOaepEncrypter.INSTANCE); | |||
AES("AES", AesGcmEncrypter.INSTANCE) { |
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.
why these changes?
|
||
Algorithm(String name, Supplier<KeyPair> keyPairGenerator, Supplier<Encrypter> cipherGenerator) { | ||
Algorithm(String name, Encrypter cipher) { |
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.
why this change?
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.
see above - errorprone was demanding it
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.
fair enough
current creds should be good |
Does a few things, because stuff kept breaking.