Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic signer and checker #5

Merged
merged 50 commits into from
Dec 23, 2016
Merged

Commits on Nov 16, 2016

  1. Remove friendsofphp/php-cs-fixer that was conflicting with roave/bett…

    …er-reflection
    Jefersson Nathan committed Nov 16, 2016
    Configuration menu
    Copy the full SHA
    6341389 View commit details
    Browse the repository at this point in the history
  2. Introduce a signer interface

    Jefersson Nathan committed Nov 16, 2016
    Configuration menu
    Copy the full SHA
    4016e37 View commit details
    Browse the repository at this point in the history
  3. Add signer and checker

    Jefersson Nathan committed Nov 16, 2016
    Configuration menu
    Copy the full SHA
    79412cf View commit details
    Browse the repository at this point in the history
  4. Introduce encoder namespace and encoder class for base 64

    Jefersson Nathan committed Nov 16, 2016
    Configuration menu
    Copy the full SHA
    a68bf65 View commit details
    Browse the repository at this point in the history
  5. Introduce hashers and md5 hasher

    Jefersson Nathan committed Nov 16, 2016
    Configuration menu
    Copy the full SHA
    d865af3 View commit details
    Browse the repository at this point in the history
  6. Change ClassSignerInterface to use Hasher and Encoder via DI

    Jefersson Nathan committed Nov 16, 2016
    Configuration menu
    Copy the full SHA
    c5fba21 View commit details
    Browse the repository at this point in the history
  7. s/ClassSignerInterface/SignerInterface

    Jefersson Nathan committed Nov 16, 2016
    Configuration menu
    Copy the full SHA
    aafde69 View commit details
    Browse the repository at this point in the history
  8. Turn signer class final

    Jefersson Nathan committed Nov 16, 2016
    Configuration menu
    Copy the full SHA
    ce4d31b View commit details
    Browse the repository at this point in the history
  9. - Fix signature checker to use encoder and hasher.

    - Introduce checker interface
    Jefersson Nathan committed Nov 16, 2016
    Configuration menu
    Copy the full SHA
    64db217 View commit details
    Browse the repository at this point in the history
  10. s/ClassChecker/Checker

    Jefersson Nathan committed Nov 16, 2016
    Configuration menu
    Copy the full SHA
    6086493 View commit details
    Browse the repository at this point in the history
  11. composer remove roave/better-reflection

    Jefersson Nathan committed Nov 16, 2016
    Configuration menu
    Copy the full SHA
    fdc8eb9 View commit details
    Browse the repository at this point in the history
  12. composer require zendframework/zend-code:^3.0

    Jefersson Nathan committed Nov 16, 2016
    Configuration menu
    Copy the full SHA
    e14df57 View commit details
    Browse the repository at this point in the history
  13. Implements file signer and checker

    Jefersson Nathan committed Nov 16, 2016
    Configuration menu
    Copy the full SHA
    7d2e342 View commit details
    Browse the repository at this point in the history
  14. Fix wrong namespace for unit test

    Jefersson Nathan committed Nov 16, 2016
    Configuration menu
    Copy the full SHA
    152a858 View commit details
    Browse the repository at this point in the history
  15. Added test class doc block

    Jefersson Nathan committed Nov 16, 2016
    Configuration menu
    Copy the full SHA
    d5af64c View commit details
    Browse the repository at this point in the history
  16. Add test to signature checker

    Jefersson Nathan committed Nov 16, 2016
    Configuration menu
    Copy the full SHA
    391fd6c View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2016

  1. Remove author and license as per @asgrim review

    Jefersson Nathan committed Nov 23, 2016
    Configuration menu
    Copy the full SHA
    88d1b0a View commit details
    Browse the repository at this point in the history
  2. Update zendframework/zend-code version to ^3.1

    Jefersson Nathan committed Nov 23, 2016
    Configuration menu
    Copy the full SHA
    34f02bf View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2016

  1. Add InvalidSignatureException

    Jefersson Nathan committed Nov 24, 2016
    Configuration menu
    Copy the full SHA
    ba46e42 View commit details
    Browse the repository at this point in the history
  2. Add SignatureDoesNotMatchException

    Jefersson Nathan committed Nov 24, 2016
    Configuration menu
    Copy the full SHA
    5509ee7 View commit details
    Browse the repository at this point in the history
  3. Add missing tests for FileContentChecker

    Jefersson Nathan committed Nov 24, 2016
    Configuration menu
    Copy the full SHA
    e0edd01 View commit details
    Browse the repository at this point in the history
  4. Add missing tests for Checker

    Jefersson Nathan committed Nov 24, 2016
    Configuration menu
    Copy the full SHA
    79e0227 View commit details
    Browse the repository at this point in the history
  5. Added missing tests for FileContentSigner

    Jefersson Nathan committed Nov 24, 2016
    Configuration menu
    Copy the full SHA
    5360d40 View commit details
    Browse the repository at this point in the history
  6. s/Checker/ParameterCheck

    Jefersson Nathan committed Nov 24, 2016
    Configuration menu
    Copy the full SHA
    64ac3c7 View commit details
    Browse the repository at this point in the history
  7. s/Signer/ParameterSigner

    Jefersson Nathan committed Nov 24, 2016
    Configuration menu
    Copy the full SHA
    e32b08e View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2016

  1. Change cover to coversNothing as per @Ocramius review

    Jefersson Nathan committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    a12af4f View commit details
    Browse the repository at this point in the history
  2. Better approach to signer at file level needs

    - A signed file needs to have a commented line `Roave/Signature: SIGNER-KEY`
    - The line with the signer key will be removed before check against the signature
    - The line removal occurs only on run time, nothing is modified or saved, just read
    - DId leave TODO's in there just to see if we're doing in a good way
    Jefersson Nathan committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    94dbf43 View commit details
    Browse the repository at this point in the history
  3. Remove remaining @author and @license tags

    Jefersson Nathan committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    2ca0391 View commit details
    Browse the repository at this point in the history
  4. Rename InvalidSignatureException to SignatureException and create a n…

    …amed constructor method to create the exception instead of change the internal property `$message` on the exception class
    Jefersson Nathan committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    6ff3704 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3719fe2 View commit details
    Browse the repository at this point in the history
  6. Remove SignatureDoesNotMatchException and move its logic/meaning Sign…

    …atureException class
    Jefersson Nathan committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    5575d1b View commit details
    Browse the repository at this point in the history
  7. Remove missing references to SignatureDoesNotMatchException

    Jefersson Nathan committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    980f537 View commit details
    Browse the repository at this point in the history
  8. Remove parameters checker and signer

    Jefersson Nathan committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    4d4160d View commit details
    Browse the repository at this point in the history
  9. Change signer interface

    Jefersson Nathan committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    ddeb276 View commit details
    Browse the repository at this point in the history
  10. Change checker interface

    Jefersson Nathan committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    05f8638 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    2b2783c View commit details
    Browse the repository at this point in the history
  12. Change checker interface to return boolean and not throw exception an…

    …ymore
    Jefersson Nathan committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    1856cef View commit details
    Browse the repository at this point in the history
  13. Remove exception that's not used anymore

    Jefersson Nathan committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    05ece25 View commit details
    Browse the repository at this point in the history
  14. Use Roave as vendor prefix

    Jefersson Nathan committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    5136799 View commit details
    Browse the repository at this point in the history
  15. Change hash and encode interface to accept string

    Jefersson Nathan committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    183d3d4 View commit details
    Browse the repository at this point in the history
  16. Encode interface supports verify method

    Jefersson Nathan committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    a124ec5 View commit details
    Browse the repository at this point in the history
  17. Remove forgotten ide hint

    Jefersson Nathan committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    7597034 View commit details
    Browse the repository at this point in the history
  18. composer remove zendframework/zend-code

    Jefersson Nathan committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    90095f7 View commit details
    Browse the repository at this point in the history
  19. replace "\n" with PHP_EOL

    Jefersson Nathan committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    d23bd26 View commit details
    Browse the repository at this point in the history
  20. replace "\n" with PHP_EOL

    Jefersson Nathan committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    27c16e1 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2016

  1. Remove php 7.1 ? operator

    Jefersson Nathan committed Dec 5, 2016
    Configuration menu
    Copy the full SHA
    fc3218a View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2016

  1. Use preg_replace to strip commented signature line

    Jefersson Nathan committed Dec 22, 2016
    Configuration menu
    Copy the full SHA
    5a8e3b2 View commit details
    Browse the repository at this point in the history
  2. Remove hasher related stuff

    Jefersson Nathan committed Dec 22, 2016
    Configuration menu
    Copy the full SHA
    acf816e View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2016

  1. Added missing rth

    Jefersson Nathan committed Dec 23, 2016
    Configuration menu
    Copy the full SHA
    6d318e0 View commit details
    Browse the repository at this point in the history
  2. Remove __construct from interface definition

    Jefersson Nathan committed Dec 23, 2016
    Configuration menu
    Copy the full SHA
    fc5c091 View commit details
    Browse the repository at this point in the history