-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
registers/auth, sends encrypted FHIR messages, needs cleanup.
- Loading branch information
Showing
17 changed files
with
1,251 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
src/main/java/edu/uconn/c3pro/mockmobile/EncryptedMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package edu.uconn.c3pro.mockmobile; | ||
|
||
/** | ||
* HTTP/1.1 POST /c3pro/fhirenc/* | ||
* { | ||
* "message":{{The encrypted fhir resource}}, | ||
* "symmetric_key": {{The encrypted AES symmetric key used to encrypt the message}}, | ||
* "key_id": {{The rsa key id used to encrypt the symmetric key}}, | ||
* "version": {{0.9.0 or 1.0.2}} | ||
* } | ||
* | ||
**/ | ||
|
||
public class EncryptedMessage { | ||
private String message; | ||
private String symmetric_key; | ||
private String key_id; | ||
private String version; | ||
|
||
public EncryptedMessage() { | ||
} | ||
|
||
public EncryptedMessage(String message, String symmetric_key, String key_id, String version) { | ||
this.message = message; | ||
this.symmetric_key = symmetric_key; | ||
this.key_id = key_id; | ||
this.version = version; | ||
} | ||
|
||
public String getMessage() { | ||
return message; | ||
} | ||
|
||
public void setMessage(String message) { | ||
this.message = message; | ||
} | ||
|
||
public String getSymmetric_key() { | ||
return symmetric_key; | ||
} | ||
|
||
public void setSymmetric_key(String symmetric_key) { | ||
this.symmetric_key = symmetric_key; | ||
} | ||
|
||
public String getKey_id() { | ||
return key_id; | ||
} | ||
|
||
public void setKey_id(String key_id) { | ||
this.key_id = key_id; | ||
} | ||
|
||
public String getVersion() { | ||
return version; | ||
} | ||
|
||
public void setVersion(String version) { | ||
this.version = version; | ||
} | ||
|
||
} |
Oops, something went wrong.