Page last modified 14:13, 7 Aug 2015 by juhako

.toSHA1()

    Table of contents

    Version as of 06:46, 27 Jun 2022

    to this version.

    Return to Version archive.

    View current version

    Description of the method

     

    Description: This method calculates the SHA-1 hash value from the value of base64binary field.
    Available for: base64binary
    Parameters:  -
    Return type: string

    Example

     

    Context: AttachmentDetailsType
    OCL: self.AttachmentSecureHash = self.AttachmentContent.toSH1()
    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.

    <AttachmentContent>/9j/4AAQSkZJRgABA...</AttachmentContent><AttachmentSecureHash>447dcbbd5a417...</AttachmentSecureHash>

    Menu