public final class PassphraseGeneratedEncryptionConfiguration extends AbstractEncryptionConfiguration<PassphraseGeneratedEncryptionConfiguration> implements org.jboss.aerogear.android.core.Config<PassphraseGeneratedEncryptionConfiguration>
PassphraseGeneratedEncryptionServices.| Constructor and Description |
|---|
PassphraseGeneratedEncryptionConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected EncryptionService |
buildService()
Validates configuration parameters and returns a
EncryptionService instance. |
String |
getPassphrase()
The passphrase is phrase which will be used to generate a key.
|
byte[] |
getSalt()
A cryptographic salt to be used by the Encryption Service to generate a
key.
|
PassphraseGeneratedEncryptionConfiguration |
setPassphrase(String passphrase)
The passphrase is phrase which will be used to generate a key.
|
PassphraseGeneratedEncryptionConfiguration |
setSalt(byte[] salt)
A cryptographic salt to be used by the Encryption Service to generate a
key.
|
addOnEncryptionServiceCreatedListener, asService, getContext, getName, getOnEncryptionServiceCreatedListeners, setContext, setName, setOnEncryptionServiceCreatedListenerspublic PassphraseGeneratedEncryptionConfiguration()
public byte[] getSalt()
public PassphraseGeneratedEncryptionConfiguration setSalt(byte[] salt)
salt - a new saltpublic String getPassphrase()
public PassphraseGeneratedEncryptionConfiguration setPassphrase(String passphrase)
passphrase - a new passphraseprotected EncryptionService buildService()
AbstractEncryptionConfigurationEncryptionService instance.buildService in class AbstractEncryptionConfiguration<PassphraseGeneratedEncryptionConfiguration>EncryptionService based on this configurationCopyright © 2015 JBoss by Red Hat. All rights reserved.