Package com.onslip360

Class Hawk


  • public abstract class Hawk
    extends Object
    • Constructor Detail

      • Hawk

        public Hawk()
    • Method Detail

      • digestPayload

        public static String digestPayload​(String contentType,
                                           byte[] payload)
      • makeAuthorizationHeader

        public static String makeAuthorizationHeader​(String method,
                                                     URI uri,
                                                     @Nullable
                                                     String hash,
                                                     String keyName,
                                                     byte[] keyValue,
                                                     @Nullable
                                                     String ext,
                                                     @Nullable
                                                     String app,
                                                     @Nullable
                                                     String dlg)
      • makeServerAuthorizationHeader

        public static String makeServerAuthorizationHeader​(String method,
                                                           URI uri,
                                                           @Nullable
                                                           String contentType,
                                                           @Nullable
                                                           byte[] payload,
                                                           byte[] keyValue,
                                                           int timestamp,
                                                           String nonce,
                                                           @Nullable
                                                           String ext,
                                                           @Nullable
                                                           String app,
                                                           @Nullable
                                                           String dlg)