com.amazonaws.services.sns.util

## クラス SignatureChecker

- java.lang.Object
- - com.amazonaws.services.sns.util.SignatureChecker

-     public class SignatureChecker
      extends java.lang.Object

  Utility for validating signatures on a Simple Notification Service JSON message.

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `SignatureChecker()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `protected java.lang.String` | `stringToSign(java.util.SortedMap<java.lang.String,java.lang.String> signables)`
    `boolean` | `verifyMessageSignature(java.lang.String message, java.security.PublicKey publicKey)` Validates the signature on a Simple Notification Service message.
    `boolean` | `verifySignature(java.lang.String message, java.lang.String signature, java.security.PublicKey publicKey)` Does the actual Java cryptographic verification of the signature.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### SignatureChecker

          public SignatureChecker()

  - ### メソッドの詳細

    - #### verifyMessageSignature

          public boolean verifyMessageSignature(java.lang.String message,
                                       java.security.PublicKey publicKey)

      Validates the signature on a Simple Notification Service message. No Amazon-specific dependencies, just plain Java crypto and Jackson for parsing
      パラメータ:
        `message` - A JSON-encoded Simple Notification Service message. Note: the JSON may be only one level deep.
        `publicKey` - The Simple Notification Service public key, exactly as you'd see it when retrieved from the cert.
      戻り値:
        True if the message was correctly validated, otherwise false.

    - #### verifySignature

          public boolean verifySignature(java.lang.String message,
                                java.lang.String signature,
                                java.security.PublicKey publicKey)

      Does the actual Java cryptographic verification of the signature. This method does no handling of the many rare exceptions it is required to catch.
      パラメータ:
        `message` - Exact string that was signed
        `signature` - Base64-encoded signature of the message
      戻り値:

    - #### stringToSign

          protected java.lang.String stringToSign(java.util.SortedMap<java.lang.String,java.lang.String> signables)