Class ChannelOptions


  • public class ChannelOptions
    extends java.lang.Object
    • Field Detail

      • cipherParams

        public java.lang.Object cipherParams
        Parameters for the cipher.
      • encrypted

        public boolean encrypted
        Whether or not this ChannelOptions is encrypted.
    • Constructor Detail

      • ChannelOptions

        public ChannelOptions()
    • Method Detail

      • 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.