Class GravatarProfileTokenProvider
java.lang.Object
com.github.natche.gravatarjavaclient.profile.GravatarProfileTokenProvider
An authentication token provider for Gravatar Profile requests.
-
Constructor Summary
ConstructorsConstructorDescriptionGravatarProfileTokenProvider(Supplier<byte[]> tokenProvider, String source) Constructs a new token provider. -
Method Summary
-
Constructor Details
-
GravatarProfileTokenProvider
Constructs a new token provider.- Parameters:
tokenProvider- the supplier for producing an API token as a byte arraysource- the source/key, this is used for hash and equals comparisons- Throws:
NullPointerException- if any parameter is nullIllegalArgumentException- if source is empty
-
-
Method Details
-
getToken
public byte[] getToken()Returns the token.- Returns:
- the token
-
hashCode
public int hashCode()Returns a hashcode representation of this object. -
equals
Returns whether the provided object equals this. -
toString
Returns a string representation of this object.
-