public class ChannelOptions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.Object |
cipherParams
Parameters for the cipher.
|
boolean |
encrypted
Whether or not this ChannelOptions is encrypted.
|
| Constructor and Description |
|---|
ChannelOptions() |
| Modifier and Type | Method and Description |
|---|---|
static ChannelOptions |
fromCipherKey(byte[] key)
Deprecated.
|
static ChannelOptions |
fromCipherKey(java.lang.String base64Key)
Deprecated.
|
Crypto.ChannelCipher |
getCipher() |
static ChannelOptions |
withCipherKey(byte[] key)
Create ChannelOptions with the given cipher key.
|
static ChannelOptions |
withCipherKey(java.lang.String base64Key)
Create ChannelOptions with the given cipher key.
|
public java.lang.Object cipherParams
public boolean encrypted
public Crypto.ChannelCipher getCipher() throws AblyException
AblyException@Deprecated public static ChannelOptions fromCipherKey(byte[] key) throws AblyException
key - Byte array cipher key.AblyException - If something goes wrong.@Deprecated public static ChannelOptions fromCipherKey(java.lang.String base64Key) throws AblyException
base64Key - The cipher key as a base64-encoded String,AblyException - If something goes wrong.public static ChannelOptions withCipherKey(byte[] key) throws AblyException
key - Byte array cipher key.AblyException - If something goes wrong.public static ChannelOptions withCipherKey(java.lang.String base64Key) throws AblyException
base64Key - The cipher key as a base64-encoded String,AblyException - If something goes wrong.