コード例 #1
0
 public KeyProvider getKeyProvider() {
   return EncryptionCodec.getKeyProvider(codecProperties);
 }
コード例 #2
0
 /**
  * Set the Java security provider to use for all encryption operations. If not specified, the
  * default provider(s) will be used from your java.security file.
  */
 public void setSecurityProvider(Provider provider) {
   EncryptionCodec.setPropSecurityProvider(codecProperties, provider);
 }
コード例 #3
0
 /**
  * Set the size of encryption key to use, either 128 or 256. Note that to use 256-bit AES keys,
  * you will probably need the unlimited strength jurisdiction files installed in your JRE.
  */
 public void setKeySize(int keySize) {
   EncryptionCodec.setKeySize(codecProperties, keySize);
 }
コード例 #4
0
 public Provider getSecurityProvider() {
   return EncryptionCodec.getSecurityProvider(codecProperties);
 }
コード例 #5
0
 public int getKeySize() {
   return EncryptionCodec.getKeySize(codecProperties);
 }