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.
|
ChannelMode[] |
modes |
java.util.Map<java.lang.String,java.lang.String> |
params |
| 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() |
int |
getModeFlags() |
boolean |
hasModes() |
boolean |
hasParams() |
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.util.Map<java.lang.String,java.lang.String> params
public ChannelMode[] modes
public java.lang.Object cipherParams
public boolean encrypted
public boolean hasModes()
public boolean hasParams()
public int getModeFlags()
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.