public final class HawkClient extends java.lang.Object implements java.lang.Comparable<HawkClient>
Modifier and Type | Class and Description |
---|---|
static class |
HawkClient.Builder |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HawkClient that) |
boolean |
equals(java.lang.Object that) |
java.lang.String |
generateAuthorizationHeader(java.net.URI uri,
java.lang.String method,
java.lang.String hash,
java.lang.String ext,
java.lang.String app,
java.lang.String dlg)
Generate the value for the Hawk authorization header.
|
int |
hashCode() |
boolean |
isValidFor(java.lang.String path) |
java.lang.String |
toString() |
public java.lang.String generateAuthorizationHeader(java.net.URI uri, java.lang.String method, java.lang.String hash, java.lang.String ext, java.lang.String app, java.lang.String dlg)
uri
- the URI for the requestmethod
- the request for the methodhash
- a hash of the request's payload, or null
if payload authentication is not requiredext
- extra data, or null
if noneapp
- application ID, or null
if nonedlg
- delegator, or null
if nonecom.wealdtech.DataError
- If there is a problem with the data passed in which makes it impossible to generate a valid authorization headerpublic boolean isValidFor(java.lang.String path)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(HawkClient that)
compareTo
in interface java.lang.Comparable<HawkClient>