Skip to content

liangbodeng/enhanced-rpki-validator-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A Demo of AspectJ usage - Enhance the RIPE RPKI Validator

What is this?

This is a demo of how you can use AspectJ to cleanly enhance a third-party library. You may want to do this when you do not have the access to the source code of the third-party library, or you prefer not to modify it.

Why the enhancement?

When running test, we want to verify a local generated RPKI repository without starting rsync.

Enhancements explained

We enhanced two classes: Rsync and CommandLineOptions.

  • For Rsync: execute method is enhanced
  • For CommandLineOptions: addOptions and parse methods are enhanced
  • We also added a RsyncFsMapper to store the mapping of rsync <-> file system

Result: now we can use local file system to simulate rsync with the mapping specified with -x (multiple mappings allowed)

java -jar enhanced-rpki-validator-cli.jar -t test.tal -o output -x rsync://test01.rpki.example.com:12345/repository=/tmp/test01repo

About

A Demo of AspectJ Usage - Enhance the RIPE RPKI Validator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages