ably-java icon indicating copy to clipboard operation
ably-java copied to clipboard

Cleanup deprecated methods

Open qsdigor opened this issue 2 years ago • 1 comments

We need to remove some of the deprecated methods. Targeting version 2.0.0 is the best time to do so as it is a major change. There are not many of them and all have replacement methods.

Deprecated since 08/01/2017 public static TokenRequest fromJSON(JsonObject json)

|----| | replacement |

public static TokenDetails fromJsonElement(JsonObject json)

Deprecated since 30/10/2015 public static TokenDetails fromJSON(JsonObject json)

|----| | replacement |

public static TokenDetails fromJson(String json)

Deprecated since 06/07/2022 public TokenDetails renew()

|----| | replacement |

public void renewAuth(RenewAuthResult result)

Deprecated since 03/02/2022 public ChannelCipher getCipher()

|----| | replacement |

public synchronized ChannelCipherSet getCipherSet()

Deprecated since 01/11/2019 public static ChannelOptions fromCipherKey(byte[ ] key)

|----| | replacement |

public static ChannelOptions withCipherKey(byte[ ] key)

Deprecated since 01/11/2019 public static ChannelOptions fromCipherKey(String base64Key)

|----| | replacement |

public static ChannelOptions withCipherKey(String base64Key)

Deprecated since 03/02/2022 public interface ChannelCipher

|----| | replacement |

public interface ChannelCipherSet

Deprecated since 16/01/2017 public void emit(ConnectionState state, ConnectionStateChange stateChange)

Deprecated since 16/01/2017 public void on(ConnectionState state, ConnectionStateListener listener)

Deprecated since 16/01/2017 public void once(ConnectionState state, ConnectionStateListener listener)

Deprecated since 16/01/2017 public TokenDetails authorise(TokenParams params, AuthOptions options)

|----| | replacement |

public TokenDetails authorize(TokenParams params, AuthOptions options)

Deprecated since 27/10/2020 public boolean fallbackHostsUseDefault

Tests: Deprecated since 01/11/2019 public void channel_options_from_cipher_key()

┆Issue is synchronized with this Jira Task by Unito

qsdigor avatar Sep 08 '22 11:09 qsdigor

The corresponding Jira issue is https://ably.atlassian.net/browse/SDK-2627

deanna-lad avatar Jan 24 '23 11:01 deanna-lad