Package io.ably.lib.types
Class ChannelOptions
- java.lang.Object
-
- io.ably.lib.types.ChannelOptions
-
public class ChannelOptions extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.ObjectcipherParamsParameters for the cipher.booleanencryptedWhether or not this ChannelOptions is encrypted.
-
Constructor Summary
Constructors Constructor Description ChannelOptions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ChannelOptionsfromCipherKey(byte[] key)Deprecated.static ChannelOptionsfromCipherKey(java.lang.String base64Key)Deprecated.Crypto.ChannelCiphergetCipher()static ChannelOptionswithCipherKey(byte[] key)Create ChannelOptions with the given cipher key.static ChannelOptionswithCipherKey(java.lang.String base64Key)Create ChannelOptions with the given cipher key.
-
-
-
Method Detail
-
getCipher
public Crypto.ChannelCipher getCipher() throws AblyException
- Throws:
AblyException
-
fromCipherKey
@Deprecated public static ChannelOptions fromCipherKey(byte[] key) throws AblyException
Deprecated.Deprecated. Use withCipherKey(byte[]) instead.
Create ChannelOptions from the given cipher key.- Parameters:
key- Byte array cipher key.- Returns:
- Created ChannelOptions.
- Throws:
AblyException- If something goes wrong.
-
fromCipherKey
@Deprecated public static ChannelOptions fromCipherKey(java.lang.String base64Key) throws AblyException
Deprecated.Deprecated. Use withCipherKey(String) instead.
Create ChannelOptions from the given cipher key.- Parameters:
base64Key- The cipher key as a base64-encoded String,- Returns:
- Created ChannelOptions.
- Throws:
AblyException- If something goes wrong.
-
withCipherKey
public static ChannelOptions withCipherKey(byte[] key) throws AblyException
Create ChannelOptions with the given cipher key.- Parameters:
key- Byte array cipher key.- Returns:
- Created ChannelOptions.
- Throws:
AblyException- If something goes wrong.
-
withCipherKey
public static ChannelOptions withCipherKey(java.lang.String base64Key) throws AblyException
Create ChannelOptions with the given cipher key.- Parameters:
base64Key- The cipher key as a base64-encoded String,- Returns:
- Created ChannelOptions.
- Throws:
AblyException- If something goes wrong.
-
-