Example #1
0
        static internal SignTask Map(SignTaskDTO signTaskDTO)
        {
            FixedList <SignRequest> signRequests = Map(signTaskDTO.signRequests);
            SignCredentials         credentials  = Map(signTaskDTO.credentials);

            return(new SignTask(signTaskDTO.eventType, signRequests, credentials));
        }
Example #2
0
        internal SignTask(SignEventType eventType,
                          FixedList <SignRequest> signRequests,
                          SignCredentials credentials)
        {
            this.EventType       = eventType;
            this.SignRequests    = signRequests;
            this.SignCredentials = credentials;

            this.EnsureIsValid();
        }
        static private string SignData(SignCredentials credentials, string inputData)
        {
            SecureString securedPassword = Cryptographer.ConvertToSecureString(credentials.Password);

            return(Cryptographer.SignText(inputData, securedPassword));
        }
        private void EnsureValidCredentials(SignCredentials credentials)
        {
            SecureString securedPassword = Cryptographer.ConvertToSecureString(credentials.Password);

            Cryptographer.AssertValidPrivateKeyPassword(securedPassword);
        }