public abstract class AbstractEncryptionService extends Object implements EncryptionService
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
applicationIV |
protected static byte[] |
INSTANCE_IV |
| Constructor and Description |
|---|
AbstractEncryptionService(android.content.Context appContext) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] message)
Decrypt the message with an application scoped IV
|
byte[] |
decrypt(byte[] iv,
byte[] message)
Decrypt the message with an IV
|
byte[] |
encrypt(byte[] message)
Encrypt the message with an application scoped IV
|
byte[] |
encrypt(byte[] iv,
byte[] message)
Encrypt the message with a iv
|
protected abstract org.jboss.aerogear.crypto.CryptoBox |
getCryptoInstance() |
protected static final byte[] INSTANCE_IV
protected final byte[] applicationIV
public AbstractEncryptionService(android.content.Context appContext)
protected abstract org.jboss.aerogear.crypto.CryptoBox getCryptoInstance()
public byte[] decrypt(byte[] message)
EncryptionServicedecrypt in interface EncryptionServicemessage - the message to decryptpublic byte[] decrypt(byte[] iv,
byte[] message)
EncryptionServicedecrypt in interface EncryptionServiceiv - The IV to encrypted the message withmessage - the message to decryptpublic byte[] encrypt(byte[] message)
EncryptionServiceencrypt in interface EncryptionServicemessage - the message to encryptpublic byte[] encrypt(byte[] iv,
byte[] message)
EncryptionServiceencrypt in interface EncryptionServiceiv - The IV to encrypted the message withmessage - the message to encryptCopyright © 2016 JBoss by Red Hat. All rights reserved.