Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 436dd5bd authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

adding documentation for interface

parent 1ad6f3ee
No related branches found
No related tags found
No related merge requests found
......@@ -7,18 +7,51 @@ namespace TUGraz.VectoHashing
{
IList<VectoComponents> GetContainigComponents();
/**
* Computes the hash-value of the top-level Data element (or vehicle)
* Note: the top-level Data element is required to have an id attribute!
* @return base64 encoded hash value
*/
string ComputeHash();
/**
* Computes the hash-value for the given component. If a component can exist multiple times
* (i.e., Tyres) the index specifies for which component the hash is computed
* Note: the Data element is required to have an id attribute!
* @return base64 encoded hash value
*/
string ComputeHash(VectoComponents component, int index = 0);
/**
* Computes the hash-value of the outer Data element and adds the according Signature element
* after the Data element.
* Note: the id attribute is added to the Data element automatically. if an id attribute is already
* present its value is overwritten.
* @return returns the document including the Signature element with the hash of the Data block
*/
XDocument AddHash();
/**
* Reads the hash-value of the top-level Signature element
* @return base64 encoded hash value
*/
string ReadHash();
/**
* Reads the hash-value of the Signature element for the given component. If a component can exist
* multiple times (i.e., Tyres), the index specifies for which component the hash is computed
* @return base64 encoded hash value
*/
string ReadHash(VectoComponents component, int index = 0);
/**
* Validates the hash of the top-level component (or vehicle)
*/
bool ValidateHash();
/**
* Validates the hash for the given component.
*/
bool ValidateHash(VectoComponents component, int index = 0);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment