CONFIGURATION - The concrete implementation of the CryptoConfigurationpublic abstract class AbstractEncryptionConfiguration<CONFIGURATION extends AbstractEncryptionConfiguration<CONFIGURATION>> extends Object implements org.jboss.aerogear.android.core.Config<CONFIGURATION>
| Constructor and Description |
|---|
AbstractEncryptionConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
CONFIGURATION |
addOnEncryptionServiceCreatedListener(OnEncryptionServiceCreatedListener listener)
OnEncryptionServiceCreatedListeners are a collection of classes to be
notified when the configuration of the service is complete.
|
EncryptionService |
asService()
Creates a
EncryptionService based on the current configuration
and notifies all listeners |
protected abstract EncryptionService |
buildService()
Validates configuration parameters and returns a
EncryptionService instance. |
android.content.Context |
getContext() |
String |
getName() |
Collection<OnEncryptionServiceCreatedListener> |
getOnEncryptionServiceCreatedListeners()
OnEncryptionServiceCreatedListeners are a collection of classes to be
notified when the configuration of the service is complete.
|
CONFIGURATION |
setContext(android.content.Context context) |
CONFIGURATION |
setName(String name) |
CONFIGURATION |
setOnEncryptionServiceCreatedListeners(Collection<OnEncryptionServiceCreatedListener> listeners)
OnEncryptionServiceCreatedListeners are a collection of classes to be
notified when the configuration of the Service is complete.
|
public android.content.Context getContext()
public CONFIGURATION setContext(android.content.Context context)
public String getName()
getName in interface org.jboss.aerogear.android.core.Config<CONFIGURATION extends AbstractEncryptionConfiguration<CONFIGURATION>>public CONFIGURATION setName(String name)
setName in interface org.jboss.aerogear.android.core.Config<CONFIGURATION extends AbstractEncryptionConfiguration<CONFIGURATION>>public final EncryptionService asService()
EncryptionService based on the current configuration
and notifies all listenersEncryptionService based on this configurationIllegalStateException - if context is nullprotected abstract EncryptionService buildService()
EncryptionService instance.EncryptionService based on this configurationpublic Collection<OnEncryptionServiceCreatedListener> getOnEncryptionServiceCreatedListeners()
public CONFIGURATION addOnEncryptionServiceCreatedListener(OnEncryptionServiceCreatedListener listener)
listener - new listener to add to the collectionpublic CONFIGURATION setOnEncryptionServiceCreatedListeners(Collection<OnEncryptionServiceCreatedListener> listeners)
listeners - new collection to replace the current oneCopyright © 2015 JBoss by Red Hat. All rights reserved.