Redirected from User Guides/myXML/User guide for OCL rules in XMLdation environment/Available methods for OCL base types/.toSHA1().toSHA1()
Description of the method
|Description:||This method calculates the SHA-1 hash value from the value of base64binary field.|
|OCL:||self.AttachmentSecureHash = self.AttachmentContent.toSHA1()|
|Description:||In this example the value of <AttachmentSecureHash> field found from the file is compared to the SHA-1 hash value which is calculated from the value of <AttachmentContent> element of the file.|
Attached you can find an XSD and test file which passes this example rule.