View Javadoc
1   package org.kuali.coeus.s2sgen.api.hash;
2   
3   /**
4    * Service to compute hashes for s2s.
5    */
6   public interface GrantApplicationHashService {
7   
8       /**
9        * Computes a hash for a grant application in string form.  xml cannot be blank.
10       * @param xml the grant application xml.  cannot be blank
11       * @return the hash
12       */
13      String computeGrantFormsHash(String xml);
14  
15      /**
16       * Computes a hash for an attachment in byte array form.  attachment cannot be null or empty.
17       * @param attachment the attachment.  cannot be null or empty
18       * @return the hash
19       */
20      String computeAttachmentHash(byte[] attachment);
21  }