Interface OAuth1SignatureMethod

    • Method Detail

      • name

        String name()
        Returns the name of this signature method, as negotiated through the OAuth protocol.
        Returns:
        Signature method name.
      • verify

        boolean verify​(String elements,
                       OAuth1Secrets secrets,
                       String signature)
                throws InvalidSecretException
        Verifies the signature for the data using the supplied secret(s).
        Parameters:
        elements - a String that contains the request elements to be verified.
        secrets - the secret(s) to use to verify the signature.
        signature - a String that contains the signature to be verified.
        Returns:
        true if the signature matches the secrets and data.
        Throws:
        InvalidSecretException - if a supplied secret is not valid.