Class FacebookCredential

    • Constructor Detail

      • FacebookCredential

        public FacebookCredential​(String accessToken)
        Constructs a Facebook credential for a user.
        Parameters:
        accessToken - the access token from Facebook.
        See Also:
        Facebook Authentication
    • Method Detail

      • getProviderName

        public String getProviderName()
        Description copied from interface: StitchCredential
        Returns the authentication provider name that this credential is for. (e.g. local-userpass for the User/Password authentication provider)
        Specified by:
        getProviderName in interface StitchCredential
        Returns:
        the authentication provider name that this credential is for.
      • getProviderType

        public String getProviderType()
        Description copied from interface: StitchCredential
        Returns the authentication provider type that this credential is for. (e.g. local-userpass for the User/Password authentication provider)
        Specified by:
        getProviderType in interface StitchCredential
        Returns:
        the authentication provider type that this credential is for.
      • getMaterial

        public Document getMaterial()
        Description copied from interface: StitchCredential
        Returns the authentication material for this credential. This is the authentication provider specific information if it's necessary. For example, this could be the username and password of an identity when using the User/Password authentication provider.
        Specified by:
        getMaterial in interface StitchCredential
        Returns:
        the authentication material for this credential.