示例#1
0
        internal void RevokeSign(JsonObject credentials)
        {
            Assertion.AssertObject(credentials, "credentials");

            EnsureCanRevokeSign();

            var password = credentials.Get <string>("revokeSignToken");

            SecureString securedPassword = Cryptographer.ConvertToSecureString(password);

            Cryptographer.AssertValidPrivateKeyPassword(securedPassword);

            this.AuthorizationTime = ExecutionServer.DateMaxValue;

            _request.ExtensionData.Remove("esign");

            _statusHandler.SignRevoked();
        }
        private void EnsureValidCredentials(SignCredentials credentials)
        {
            SecureString securedPassword = Cryptographer.ConvertToSecureString(credentials.Password);

            Cryptographer.AssertValidPrivateKeyPassword(securedPassword);
        }