1 21 22 package org.apache.derby.iapi.services.crypto; 23 24 import org.apache.derby.iapi.error.StandardException; 25 import java.security.SecureRandom ; 26 import java.util.Properties ; 27 import org.apache.derby.io.StorageFactory; 28 29 49 50 public interface CipherFactory 51 { 52 53 54 public static final int MIN_BOOTPASS_LENGTH = 8; 55 56 59 public static final int ENCRYPT = 1; 60 public static final int DECRYPT = 2; 61 62 63 SecureRandom getSecureRandom(); 64 65 72 CipherProvider createNewCipher(int mode) 73 throws StandardException; 74 75 public String changeBootPassword(String changeString, Properties properties, CipherProvider verify) 76 throws StandardException; 77 78 90 public void verifyKey(boolean create, StorageFactory storageFactory,Properties properties) 91 throws StandardException; 92 93 public void saveProperties(Properties properties); 94 95 } 96 97 98 | Popular Tags |