]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - basic/runtime/org.argeo.basic.nodeps/src/main/java/org/argeo/util/crypto/PBEKeySpecCallback.java
Working keyring
[lgpl/argeo-commons.git] / basic / runtime / org.argeo.basic.nodeps / src / main / java / org / argeo / util / crypto / PBEKeySpecCallback.java
index a0fe3e0ff8f48a12f8995e57c44da5e3916f21b9..f534c6ae7b981ccd4a3901ee7990166d9580b87f 100644 (file)
@@ -17,6 +17,9 @@ public class PBEKeySpecCallback implements Callback {
        /** Can be null, will trigger secret key encryption if not */
        private String secretKeyEncryption;
 
+       private String encryptedPasswordHashCipher;
+       private byte[] encryptedPasswordHash;
+
        public void set(String secretKeyFactory, byte[] salt,
                        Integer iterationCount, Integer keyLength,
                        String secretKeyEncryption) {
@@ -25,6 +28,8 @@ public class PBEKeySpecCallback implements Callback {
                this.iterationCount = iterationCount;
                this.keyLength = keyLength;
                this.secretKeyEncryption = secretKeyEncryption;
+//             this.encryptedPasswordHashCipher = encryptedPasswordHashCipher;
+//             this.encryptedPasswordHash = encryptedPasswordHash;
        }
 
        public String getSecretKeyFactory() {
@@ -47,4 +52,12 @@ public class PBEKeySpecCallback implements Callback {
                return secretKeyEncryption;
        }
 
+       public String getEncryptedPasswordHashCipher() {
+               return encryptedPasswordHashCipher;
+       }
+
+       public byte[] getEncryptedPasswordHash() {
+               return encryptedPasswordHash;
+       }
+
 }