| 构造器和说明 |
|---|
CommonsCryptoAESEncryptor(String cipherMode,
Properties properties,
SecureRandom rng) |
| 限定符和类型 | 方法和说明 |
|---|---|
OutputStream |
createEncryptionStream(OutputStream out)
Create a stream for encryption
|
int |
getBlockSize()
Get the cipher's internal block size
|
byte[] |
getIv()
Get the initialization vector
|
int |
getIvLength()
Get the expected length for the initialization vector
|
void |
reset()
Reset state, reinitialize with the key and iv
|
void |
setIv(byte[] iv)
Set the initialization vector
|
void |
setKey(Key key)
Set the secret key
|
public CommonsCryptoAESEncryptor(String cipherMode, Properties properties, SecureRandom rng)
public int getIvLength()
EncryptorgetIvLength 在接口中 Encryptorpublic int getBlockSize()
EncryptorgetBlockSize 在接口中 Encryptorpublic byte[] getIv()
Encryptorpublic void setIv(byte[] iv)
Encryptorpublic OutputStream createEncryptionStream(OutputStream out)
EncryptorcreateEncryptionStream 在接口中 EncryptorCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.