Class AcceptHash


  • @Deprecated(since="2021-05-27")
    public class AcceptHash
    extends java.lang.Object
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    Logic for working with the Sec-WebSocket-Key and Sec-WebSocket-Accept headers.

    This is kept separate from Connection objects to facilitate difference in behavior between client and server, as well as making testing easier.

    • Constructor Summary

      Constructors 
      Constructor Description
      AcceptHash()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.lang.String hashKey​(java.lang.String key)
      Deprecated.
      Concatenate the provided key with the Magic GUID and return the Base64 encoded form.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AcceptHash

        public AcceptHash()
        Deprecated.
    • Method Detail

      • hashKey

        public static java.lang.String hashKey​(java.lang.String key)
        Deprecated.
        Concatenate the provided key with the Magic GUID and return the Base64 encoded form.
        Parameters:
        key - the key to hash
        Returns:
        the Sec-WebSocket-Accept header response (per opening handshake spec)