public boolean check ( ) throws IOException , TrustyUriException { TrustyUriModule module = ModuleDirectory . getModule ( r . getModuleId ( ) ) ; if ( module == null ) { throw new TrustyUriException ( "ERROR: Not a trusty URI or unknown module" ) ; } return module . hasCorrectHash ( r ) ; }
Checks whether the content matches the hash of the trusty URI .