Class Auth


  • public class Auth
    extends java.lang.Object
    Model Class for the Auth object sent by Facebook
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String challenge
      Used to verify the webhook.
      private java.lang.String mode
      Stores the mode of the request e.g.
      private java.lang.String token
      The secret key used to verify the webhook.
      private java.lang.String verificationToken
      Local Verification token to be compared to.
      private java.lang.String whatsAppToken
      The 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.String getChallenge()  
      java.lang.String getMode()  
      java.lang.String getToken()  
      java.lang.String getVerificationToken()  
      java.lang.String getWhatsAppToken()
      The Whats verify Token
      void setChallenge​(java.lang.String challenge)
      Sets the challenge for Auth
      void setMode​(java.lang.String mode)
      Sets the Auth mode
      void setToken​(java.lang.String token)
      Sets the Auth token
      void setVerificationToken​(java.lang.String verificationToken)
      Sets the verificationToken
      void setWhatsAppToken​(java.lang.String whatsAppToken)
      sets the whatsAppToken
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
    • Constructor Detail

      • Auth

        public Auth()
    • 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 -