Commit b9e596bf authored by calocedre TAC's avatar calocedre TAC
Browse files

add a default constructor to LocationSpecificPartDecoder

parent 4834ce65
Pipeline #228151 passed with stage
in 1 minute and 38 seconds
......@@ -27,9 +27,17 @@ public class LocationSpecificPartDecoder {
/* EC private key in String format used to decrypt the message part */
String serverAuthoritySecretKey;
public LocationSpecificPartDecoder(String servertAuthoritySecretKey) {
/**
* This default constructor should only be used for decoding.
* The server secret key is mandatory to decrypt.
*/
public LocationSpecificPartDecoder() {
this.cleaEciesEncoder = new CleaEciesEncoder();
this.serverAuthoritySecretKey = servertAuthoritySecretKey;
}
public LocationSpecificPartDecoder(String serverAuthoritySecretKey) {
this();
this.serverAuthoritySecretKey = serverAuthoritySecretKey;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment