Exemplo n.º 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));
        }
Exemplo n.º 2
0
        internal SignTask(SignEventType eventType,
                          FixedList <SignRequest> signRequests,
                          SignCredentials credentials)
        {
            this.EventType       = eventType;
            this.SignRequests    = signRequests;
            this.SignCredentials = credentials;

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

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

            Cryptographer.AssertValidPrivateKeyPassword(securedPassword);
        }