Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
message DSR {
string correlationid = 1;
int64 requestTime = 2;
string authtoken = 3;
SignatureRequest SignatureRequest = 4;
DocumentReference document = 5;
OperationalContext context = 6;
}
// *
// B: Basic Electronic Signature The lowest and simplest version just containing the SignedInfo, SignatureValue, KeyInfo and SignedProperties. This level combines the old -BES and -EPES levels. This form extends the definition of an electronic signature to conform to the identified signature policy.
// T: Signature with a timestamp A timestamp regarding the time of signing is added to protect against repudiation.
// LT: Signature with Long Term Data Certificates and revocation data are embedded to allow verification in future even if their original source is not available. This level is equivalent to the old -XL level.
// LTA: Signature with Long Term Data and Archive timestamp By using periodical timestamping (e.g. each year) compromising is prevented which could be caused by weakening previous signatures during a long-time storage period. This level is equivalent to the old -A level.
message SignatureRequest {
string type = 7; // Signature | Seal | Accordance . Default: Signature
string baseline = 8; // See * above
bool representation = 9; // To include a visual representation or not. Default: No
string reason = 10;
VisualRepresentation visualRepresentation = 11;
}
message VisualRepresentation {
int32 width = 12; // pixels
int32 length = 13; // pixels
string field_id = 14; // Name of the signature field to insert the VR
}
// The file has to be located in the Cloud Storage container by composing the path: <businessid>/<group>/<sub-group>/<name>__<version> + (always: .pdf)
message DocumentReference {
string businessid = 15;
string name = 16;
string version = 17;
string group = 18;
string subgroup = 19;
message OperationalContext { // Information for the VR
string piiid = 20; // Gets from this the customer info
string aad_id = 21; // Azure Active Directory user ID
string entityid = 22;
string businessid = 23;
string purpose = 24;
string user_role = 25;
string title = 26;
string complete_name = 27;
}
message DSRes {
string correlation_id = 28;
string status = 29;
SignatureInfo signatureinfo = 30;
}
message SignatureInfo {
string signature_id = 31;
string correlation_id = 32;
string business_id = 33;
string timestamp = 34;
string digital_signature_code = 35;
string idpack_reference = 36;
string cert_expiry_time = 37;
string cert_subject = 38;
string status = 39;
OperationalContext operational_context = 40;
DocumentReference document_reference = 41;
SignatureRequest signature_request = 42;
}
message SignatureInfoList {
repeated SignatureInfo signatureInfos = 43;
}
message DSC {
string business_id = 44;
string dsc = 45;
}
service DigitalSignatureService {
rpc SignDocument(DSR) returns (DSRes) {}
rpc GetDocumentSignatures(DocumentReference) returns (SignatureInfoList) {}
rpc VerifySignature(DSC) returns (SignatureInfo) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.