public class CryptoConfiguration extends Object implements Cloneable, Serializable
限定符和类型 | 字段和说明 |
---|---|
static CryptoConfiguration |
DEFAULT
Default crypto configuration.
|
构造器和说明 |
---|
CryptoConfiguration() |
CryptoConfiguration(ContentCryptoMode contentCryptoMode,
CryptoStorageMethod storageMethod,
SecureRandom secureRandom,
Provider contentCryptoProvider) |
限定符和类型 | 方法和说明 |
---|---|
CryptoConfiguration |
clone() |
ContentCryptoMode |
getContentCryptoMode()
Gets the content crypto mode to the specified crypto mode.
|
Provider |
getContentCryptoProvider()
Gets the content crypto provider
|
SecureRandom |
getSecureRandom()
Gets the secure random to the specified secure random generator.
|
CryptoStorageMethod |
getStorageMethod()
Gets the storage method.
|
void |
setContentCryptoMode(ContentCryptoMode contentCryptoMode)
Sets the content crypto mode to the specified crypto mode.
|
void |
setContentCryptoProvider(Provider contentCryptoProvider)
Sets the content crypto provider the specified provider.
|
void |
setSecureRandom(SecureRandom secureRandom)
Sets the secure random to the specified secure random generator, and returns the updated
CryptoConfiguration object.
|
void |
setStorageMethod(CryptoStorageMethod storageMethod)
Sets the storage method to the specified storage method.
|
CryptoConfiguration |
withContentCryptoProvider(Provider contentCryptoProvider)
Sets the content crypto provider the specified provider, and returns the updated
CryptoConfiguration object.
|
CryptoConfiguration |
withSecureRandom(SecureRandom secureRandom)
Sets the secure random to the specified secure random generator, and returns the updated
CryptoConfiguration object.
|
public static final CryptoConfiguration DEFAULT
public CryptoConfiguration()
public CryptoConfiguration(ContentCryptoMode contentCryptoMode, CryptoStorageMethod storageMethod, SecureRandom secureRandom, Provider contentCryptoProvider)
public void setContentCryptoMode(ContentCryptoMode contentCryptoMode)
contentCryptoMode
- the content crypto mode ContentCryptoMode
.public ContentCryptoMode getContentCryptoMode()
ContentCryptoMode
.public void setStorageMethod(CryptoStorageMethod storageMethod)
storageMethod
- the storage method of the cryto information sotoring.public CryptoStorageMethod getStorageMethod()
public void setSecureRandom(SecureRandom secureRandom)
secureRandom
- the secure random generator.public CryptoConfiguration withSecureRandom(SecureRandom secureRandom)
secureRandom
- the secure random generator.public SecureRandom getSecureRandom()
public void setContentCryptoProvider(Provider contentCryptoProvider)
contentCryptoProvider
- The provider to be used for crypto content.public CryptoConfiguration withContentCryptoProvider(Provider contentCryptoProvider)
contentCryptoProvider
- The provider to be used for crypto content.public Provider getContentCryptoProvider()
public CryptoConfiguration clone()
Copyright © 2020. All Rights Reserved.