public class KeyManager extends Object
| Constructor and Description |
|---|
KeyManager() |
KeyManager(EncryptionServiceFactory serviceFactory) |
| Modifier and Type | Method and Description |
|---|---|
EncryptionService |
encryptionService(String name,
CryptoConfig config,
android.content.Context context)
This method will create a encryptionService based on the config object.
|
EncryptionService |
get(String name)
Fetches an instance of encryption service.
|
void |
remove(String name)
Removes an instance of encryption service.
|
public KeyManager(EncryptionServiceFactory serviceFactory)
public KeyManager()
public EncryptionService encryptionService(String name, CryptoConfig config, android.content.Context context)
name - the name to cache the generated instance by.config - the config object.context - The Android Application Context.public EncryptionService get(String name)
name - the name provided to {@link KeyManager#encryptionService(org.jboss.aerogear.android.security.CryptoConfig, java.lang.String, android.content.Context)public void remove(String name)
name - the name provided to {@link KeyManager#encryptionService(org.jboss.aerogear.android.security.CryptoConfig, java.lang.String, android.content.Context)Copyright © 2013 JBoss by Red Hat. All Rights Reserved.