Class Auth
- java.lang.Object
-
- org.pahappa.systems.whatsapphelper.models.Auth
-
public class Auth extends java.lang.ObjectModel Class for the Auth object sent by Facebook
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringchallengeUsed to verify the webhook.private java.lang.StringmodeStores the mode of the request e.g.private java.lang.StringtokenThe secret key used to verify the webhook.private java.lang.StringverificationTokenLocal Verification token to be compared to.private java.lang.StringwhatsAppTokenThe Bearer Authentication Token for the client.
-
Constructor Summary
Constructors Constructor Description Auth()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetChallenge()java.lang.StringgetMode()java.lang.StringgetToken()java.lang.StringgetVerificationToken()java.lang.StringgetWhatsAppToken()The Whats verify TokenvoidsetChallenge(java.lang.String challenge)Sets the challenge for AuthvoidsetMode(java.lang.String mode)Sets the Auth modevoidsetToken(java.lang.String token)Sets the Auth tokenvoidsetVerificationToken(java.lang.String verificationToken)Sets the verificationTokenvoidsetWhatsAppToken(java.lang.String whatsAppToken)sets the whatsAppToken
-
-
-
Field Detail
-
whatsAppToken
private java.lang.String whatsAppToken
The Bearer Authentication Token for the client.
-
verificationToken
private java.lang.String verificationToken
Local Verification token to be compared to.
-
mode
private java.lang.String mode
Stores the mode of the request e.g. "subscribe" or "unsubscribe".
-
token
private java.lang.String token
The secret key used to verify the webhook. To be set in the webhook configuration in WhatsApp. Will be compared to the verification token
-
challenge
private java.lang.String challenge
Used to verify the webhook.
-
-
Method Detail
-
getWhatsAppToken
public java.lang.String getWhatsAppToken()
The Whats verify Token- Returns:
- whatsAppToken
-
setWhatsAppToken
public void setWhatsAppToken(java.lang.String whatsAppToken)
sets the whatsAppToken- Parameters:
whatsAppToken-
-
getVerificationToken
public java.lang.String getVerificationToken()
- Returns:
- verificationToken
-
setVerificationToken
public void setVerificationToken(java.lang.String verificationToken)
Sets the verificationToken- Parameters:
verificationToken-
-
getMode
public java.lang.String getMode()
- Returns:
- mode
-
setMode
public void setMode(java.lang.String mode)
Sets the Auth mode- Parameters:
mode-
-
getToken
public java.lang.String getToken()
- Returns:
- token
-
setToken
public void setToken(java.lang.String token)
Sets the Auth token- Parameters:
token-
-
getChallenge
public java.lang.String getChallenge()
- Returns:
- challenge for Auth
-
setChallenge
public void setChallenge(java.lang.String challenge)
Sets the challenge for Auth- Parameters:
challenge-
-
-