@Immutable public class HmacSigner extends java.lang.Object implements SignatureSigner
Constructor and Description |
---|
HmacSigner(java.lang.String secret) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this object.
|
int |
hashCode()
Returns a hash code value for the object.
|
byte[] |
sign(byte[] bytes)
Creates a HMAC hash (signature) for the given byte array.
|
public byte[] sign(byte[] bytes)
sign
in interface SignatureSigner
bytes
- the byte arraypublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
HmacSigner
and both instances have the same
equals
in class java.lang.Object
o
- an object to be tested for equalitytrue
if the other object is "equal to" this object otherwise false