Skip to content

Commit

Permalink
docs: add throws doc
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnderScorer committed Feb 5, 2024
1 parent bf784fe commit fc529cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/fingerprint/Sealed.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ public static byte[] unseal(byte[] sealed, DecryptionKey[] keys) throws IllegalA
* @param sealed Base64 encoded sealed data
* @param keys Decryption keys. The SDK will try to decrypt the result with each key until it succeeds.
* @return EventResponse
*
* @throws IllegalArgumentException if invalid decryption algorithm is provided in any of the keys
* @throws UnsealAggregateException if the sealed data cannot be decrypted with any of the keys. The exception contains the list of exceptions thrown by each key.
* @throws IOException if the sealed data un-compression fails
*/
public static EventResponse unsealEventResponse(byte[] sealed, DecryptionKey[] keys) throws IllegalArgumentException, UnsealAggregateException, IOException {
byte[] unsealed = unseal(sealed, keys);
Expand Down

0 comments on commit fc529cd

Please sign in to comment.